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

Function getRawValue

src/lib/parser/node.ts:62–66  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

60}
61
62export function getRawValue(node: Node): string | undefined {
63 if (node.rawValue !== undefined) return node.rawValue;
64 if (node.value !== undefined) return node.value;
65 return undefined;
66}
67
68export function computeAndSetBoundLength(node: Node) {
69 node.boundLength = node.offset + node.length - (node.boundOffset ?? 0);

Callers 9

diffFunction · 0.90
stringifyNodeMethod · 0.90
doIsEqualsFunction · 0.90
searchFunction · 0.90
createNodeFunction · 0.90
genValueAttrsFunction · 0.90
expectOffsetAndTextFunction · 0.90
checkFunction · 0.90
parse.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 2

expectOffsetAndTextFunction · 0.72
checkFunction · 0.72