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

Method locToStr

packages/e2e/src/code-analysis/Script.ts:73–78  ·  view source on GitHub ↗
(loc: Optional<SourceLocation>)

Source from the content-addressed store, hash-verified

71 }
72
73 private locToStr(loc: Optional<SourceLocation>): string {
74 if (loc == null) {
75 throw utils.haltOrThrow(`location in ast is ${loc}`);
76 }
77 return JSON.stringify(loc);
78 }
79
80 private findParentFunctionPath(
81 path: NodePath<FunctionClass | Identifier>,

Calls 1

haltOrThrowMethod · 0.80

Tested by

no test coverage detected