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

Function pop

lib/parse.js:1027–1038  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1025}
1026
1027function pop () {
1028 stack.pop()
1029
1030 const current = stack[stack.length - 1]
1031 if (current == null) {
1032 parseState = 'end'
1033 } else if (Array.isArray(current)) {
1034 parseState = 'afterArrayValue'
1035 } else {
1036 parseState = 'afterPropertyValue'
1037 }
1038}
1039
1040// This code is unreachable.
1041// function invalidParseState () {

Callers 4

beforePropertyNameFunction · 0.85
beforeArrayValueFunction · 0.85
afterPropertyValueFunction · 0.85
afterArrayValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected