MCPcopy
hub / github.com/DHTMLX/gantt / pattern

Function pattern

samples/common/codehighlight/javascript.js:676–682  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

674 return pass(pattern, maybetype, maybeAssign, vardefCont);
675 }
676 function pattern(type, value) {
677 if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
678 if (type == "variable") { register(value); return cont(); }
679 if (type == "spread") return cont(pattern);
680 if (type == "[") return contCommasep(eltpattern, "]");
681 if (type == "{") return contCommasep(proppattern, "}");
682 }
683 function proppattern(type, value) {
684 if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
685 register(value);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected