MCPcopy Index your code
hub / github.com/microsoft/vscode / onObjectProperty

Function onObjectProperty

extensions/npm/src/readScripts.ts:53–63  ·  view source on GitHub ↗
(property: string, offset: number, length: number)

Source from the content-addressed store, hash-verified

51 }
52 },
53 onObjectProperty(property: string, offset: number, length: number) {
54 if (level === 1 && property === 'scripts') {
55 inScripts = true;
56 start = document.positionAt(offset);
57 } else if (inScripts) {
58 buildingScript = {
59 name: property,
60 nameRange: new Range(document.positionAt(offset), document.positionAt(offset + length))
61 };
62 }
63 },
64 };
65
66 visit(buffer, visitor);

Callers 1

parseStringFunction · 0.85

Calls 1

positionAtMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…