Code coverage report for src/node-transformers/node-control-flow-transformers/factory/NodeControlFlowTransformersFactory.ts

# All files / src/node-transformers/node-control-flow-transformers/factory NodeControlFlowTransformersFactory.ts

66.67% Statements 4/6
100% Branches 0/0
0% Functions 0/1
80% Lines 4/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17

    1x

    1x
    1x

    1x

     import { TNodeTransformer } from '../../../types/TNodeTransformer';

    import { NodeType } from '../../../enums/NodeType';

    import { FunctionControlFlowTransformer } from '../FunctionControlFlowTransformer';
    import { AbstractNodeTransformersFactory } from '../../AbstractNodeTransformersFactory';

    export class NodeControlFlowTransformersFactory extends AbstractNodeTransformersFactory {
        /**
         * @type {Map<string, TNodeTransformer[]>}
         */
        protected readonly nodeTransformers: Map <string, TNodeTransformer[]> = new Map <string, TNodeTransformer[]> ([
            [NodeType.FunctionDeclaration, [FunctionControlFlowTransformer]],
            [NodeType.FunctionExpression, [FunctionControlFlowTransformer]]
        ]);
    }