MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / expressionAllowed

Function expressionAllowed

lib/web/CodeMirror/mode/javascript/javascript.js:837–841  ·  view source on GitHub ↗
(stream, state, backUp)

Source from the content-addressed store, hash-verified

835 }
836
837 function expressionAllowed(stream, state, backUp) {
838 return state.tokenize == tokenBase &&
839 /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
840 (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
841 }
842
843 // Interface
844

Callers 1

tokenBaseFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected