// @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)
];
}
|