MCPcopy Index your code
hub / github.com/json5/json5 / literal

Function literal

lib/parse.js:717–727  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

715}
716
717function literal (s) {
718 for (const c of s) {
719 const p = peek()
720
721 if (p !== c) {
722 throw invalidChar(read())
723 }
724
725 read()
726 }
727}
728
729function escape () {
730 const c = peek()

Callers 2

valueFunction · 0.85
signFunction · 0.85

Calls 3

peekFunction · 0.85
invalidCharFunction · 0.85
readFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…