MCPcopy Create free account
hub / github.com/TruthHun/BookStack / pattern

Function pattern

static/editor.md/lib/codemirror/mode/javascript/javascript.js:491–495  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

489 return pass(pattern, maybetype, maybeAssign, vardefCont);
490 }
491 function pattern(type, value) {
492 if (type == "variable") { register(value); return cont(); }
493 if (type == "[") return contCommasep(pattern, "]");
494 if (type == "{") return contCommasep(proppattern, "}");
495 }
496 function proppattern(type, value) {
497 if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
498 register(value);

Callers

nothing calls this directly

Calls 3

contCommasepFunction · 0.85
registerFunction · 0.70
contFunction · 0.70

Tested by

no test coverage detected