MCPcopy Create free account
hub / github.com/facebook/memlab / constructor

Method constructor

packages/e2e/src/code-analysis/Script.ts:61–67  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

59 private closureScopeTree: ClosureScope;
60
61 constructor(code: string) {
62 this.code = code;
63 this.ast = parse(code, {
64 sourceType: 'script',
65 });
66 this.closureScopeTree = this.buildClosureScopeTree(this.ast);
67 }
68
69 public getClosureScopeTree(): ClosureScope {
70 return this.closureScopeTree;

Callers

nothing calls this directly

Calls 2

buildClosureScopeTreeMethod · 0.95
parseFunction · 0.50

Tested by

no test coverage detected