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

Function maybelabel

lib/web/CodeMirror/mode/javascript/javascript.js:512–515  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

510 if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
511 }
512 function maybelabel(type) {
513 if (type == ":") return cont(poplex, statement);
514 return pass(maybeoperatorComma, expect(";"), poplex);
515 }
516 function property(type) {
517 if (type == "variable") {cx.marked = "property"; return cont();}
518 }

Callers

nothing calls this directly

Calls 3

contFunction · 0.70
passFunction · 0.70
expectFunction · 0.70

Tested by

no test coverage detected