MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / parseProgram

Function parseProgram

src/common/sourceCodeManipulations.ts:37–38  ·  view source on GitHub ↗
(str: string, strict = false)

Source from the content-addressed store, hash-verified

35 src.slice(getStart(node), getEnd(node));
36
37export const parseProgram = (str: string, strict = false) =>
38 (strict ? parseStrict : parse)(str, acornOptions) as unknown as Program;
39
40export const parseSource: (str: string) => (Statement & AcornNode)[] = str => {
41 const parsed = parseProgram(str) as unknown as {

Callers 7

locationFreeParseFunction · 0.90
rewriteTopLevelAwaitFunction · 0.90
completionsMethod · 0.90
parseSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected