MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / parseValue

Function parseValue

src/pseudo_json.mjs:37–43  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

35}
36
37function parseValue(stream) {
38 let next = stream.next
39 if (next == 123) return parseObj(stream)
40 if (next == 91) return parseArr(stream)
41 if (next == 34) return parseStr(stream)
42 return parseWord(stream)
43}
44
45function parseObj(stream) {
46 stream.ahead(1)

Callers 3

parseFunction · 0.85
parseObjFunction · 0.85
parseArrFunction · 0.85

Calls 4

parseObjFunction · 0.85
parseArrFunction · 0.85
parseStrFunction · 0.85
parseWordFunction · 0.85

Tested by

no test coverage detected