MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / maybelabel

Function maybelabel

mini-code-edit/cm/mode/javascript/javascript.js:252–255  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

250 if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
251 }
252 function maybelabel(type) {
253 if (type == ":") return cont(poplex, statement);
254 return pass(maybeoperator, expect(";"), poplex);
255 }
256 function property(type) {
257 if (type == "variable") {cx.marked = "property"; return cont();}
258 }

Callers

nothing calls this directly

Calls 3

expectFunction · 0.85
contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected