(ast)
| 12 | |
| 13 | class FunctionTracer { |
| 14 | constructor(ast) { |
| 15 | this.runningContexts = []; |
| 16 | this.functionContexts = []; |
| 17 | this.contexts = []; |
| 18 | this.functionCalls = []; |
| 19 | /** |
| 20 | * |
| 21 | * @type {IDeclaration[]} |
| 22 | */ |
| 23 | this.declarations = []; |
| 24 | this.identifiers = []; |
| 25 | this.functions = []; |
| 26 | this.returnStatements = []; |
| 27 | this.trackedIdentifiers = null; |
| 28 | this.states = []; |
| 29 | this.newFunctionContext(); |
| 30 | this.scan(ast); |
| 31 | } |
| 32 | |
| 33 | isState(state) { |
| 34 | return this.states[this.states.length - 1] === state; |
nothing calls this directly
no test coverage detected