MCPcopy Index your code
hub / github.com/gpujs/gpu.js / constructor

Method constructor

src/backend/function-tracer.js:14–31  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

12
13class 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;

Callers

nothing calls this directly

Calls 2

newFunctionContextMethod · 0.95
scanMethod · 0.95

Tested by

no test coverage detected