MCPcopy Index your code
hub / github.com/node-inspector/node-inspector / proppattern

Function proppattern

front-end/cm/javascript.js:493–500  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

491 if (type == "{") return contCommasep(proppattern, "}");
492 }
493 function proppattern(type, value) {
494 if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
495 register(value);
496 return cont(maybeAssign);
497 }
498 if (type == "variable") cx.marked = "property";
499 return cont(expect(":"), pattern, maybeAssign);
500 }
501 function maybeAssign(_type, value) {
502 if (value == "=") return cont(expressionNoComma);
503 }

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
registerFunction · 0.70
expectFunction · 0.70

Tested by

no test coverage detected