MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / expressionAllowed

Function expressionAllowed

static/libs/javascript.js:858–862  ·  view source on GitHub ↗
(stream, state, backUp)

Source from the content-addressed store, hash-verified

856 }
857
858 function expressionAllowed(stream, state, backUp) {
859 return state.tokenize == tokenBase &&
860 /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
861 (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
862 }
863
864 // Interface
865

Callers 1

tokenBaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected