MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / pattern

Function pattern

static/libs/javascript.js:690–696  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

688 return pass(pattern, maybetype, maybeAssign, vardefCont);
689 }
690 function pattern(type, value) {
691 if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
692 if (type == "variable") { register(value); return cont(); }
693 if (type == "spread") return cont(pattern);
694 if (type == "[") return contCommasep(eltpattern, "]");
695 if (type == "{") return contCommasep(proppattern, "}");
696 }
697 function proppattern(type, value) {
698 if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
699 register(value);

Callers

nothing calls this directly

Calls 4

isModifierFunction · 0.85
contFunction · 0.85
registerFunction · 0.85
contCommasepFunction · 0.85

Tested by

no test coverage detected