MCPcopy
hub / github.com/loggerhead/json4u / genPath

Method genPath

src/lib/parser/parse.ts:161–163  ·  view source on GitHub ↗
(pathSupplier: () => jsonc.JSONPath)

Source from the content-addressed store, hash-verified

159 }
160
161 genPath(pathSupplier: () => jsonc.JSONPath) {
162 return this.parentMeta.path.length ? [...this.parentMeta.path, ...pathSupplier()] : pathSupplier();
163 }
164
165 newNode(path: jsonc.JSONPath, type: NodeType, offset: number, length: number = 0) {
166 const node: ParseNode = {

Callers 2

onObjectBeginMethod · 0.95
onLiteralValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected