Genese complexity report

<- statement-without-trailing-substatement.ts
Methods : 1
Complexity index : 33.5
Cyclomatic complexity : 9
Cognitive complexity
0 % Correct 0/1
0 % Warning 0/1 (threshold : 10)
100 % Error 1/1 (threshold : 20)
Cyclomatic complexity
0 % Correct 0/1
100 % Warning 1/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of statement-without-trailing-substatement.ts
run Complexity Index 33.5 Cyclomatic complexity 9
                            
                                
            
            
            // @ts-ignore
            export function run(cstNode: StatementWithoutTrailingSubstatement, children: StatementWithoutTrailingSubstatementChildren): any { // ------- +0.6 Complexity index (+0.6 atomic)
                const block = children.block; // ------------------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const returnStatement = children.returnStatement; // ----------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const switchStatement = children.switchStatement; // ----------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const expressionStatement = children.expressionStatement; // --------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const doStatement = children.doStatement; // ------------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const tryStatement = children.tryStatement; // ----------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const throwStatement = children.throwStatement; // ------------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                const assertStatement = children.assertStatement; // ----------------------------------------------------------------------------------- +0.4 Complexity index (+0.4 atomic)
                
                return [ // ---------------------------------------------------------------------------------------------------------------------------- +0.1 Complexity index (+0.1 atomic)
                    ...block?.map(e => cstToAst(e)) ?? [], // ------------------------------------------------------------------------------------------ +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...returnStatement?.map(e => cstToAst(e)) ?? [], // -------------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...switchStatement?.map(e => cstToAst(e)) ?? [], // -------------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...expressionStatement?.map(e => cstToAst(e)) ?? [], // ---------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...doStatement?.map(e => cstToAst(e)) ?? [], // ------------------------------------------------------------------------------------ +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...tryStatement?.map(e => cstToAst(e)) ?? [], // ----------------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...throwStatement?.map(e => cstToAst(e)) ?? [], // --------------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                    ...assertStatement?.map(e => cstToAst(e)) ?? [], // -------------------------------------------------------------------------------- +3.7 Complexity index (+0.7 atomic, +3 structural)
                ];
            }