MCPcopy Create free account
hub / github.com/Paxa/postbird / pattern

Function pattern

public/codemirror/javascript/javascript.js:572–578  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

570 return pass(pattern, maybetype, maybeAssign, vardefCont);
571 }
572 function pattern(type, value) {
573 if (type == "modifier") return cont(pattern)
574 if (type == "variable") { register(value); return cont(); }
575 if (type == "spread") return cont(pattern);
576 if (type == "[") return contCommasep(pattern, "]");
577 if (type == "{") return contCommasep(proppattern, "}");
578 }
579 function proppattern(type, value) {
580 if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
581 register(value);

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
registerFunction · 0.85
contCommasepFunction · 0.85

Tested by

no test coverage detected