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

Method setValue

src/lib/parser/parse.ts:189–194  ·  view source on GitHub ↗
(node: ParseNode, value: any, offset: number, length: number)

Source from the content-addressed store, hash-verified

187 }
188
189 setValue(node: ParseNode, value: any, offset: number, length: number) {
190 node.value = value;
191 node.rawValue = this.text.slice(offset, offset + length);
192 node.boundOffset = offset;
193 node.boundLength = length;
194 }
195
196 addChild(child: ParseNode) {
197 const key = String(last(child.path));

Callers 1

onLiteralValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected