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

Function maybeTarget

samples/common/codehighlight/javascript.js:502–508  ·  view source on GitHub ↗
(noComma)

Source from the content-addressed store, hash-verified

500 return pass(type == "{" ? statement : expressionNoComma);
501 }
502 function maybeTarget(noComma) {
503 return function(type) {
504 if (type == ".") return cont(noComma ? targetNoComma : target);
505 else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
506 else return pass(noComma ? expressionNoComma : expression);
507 };
508 }
509 function target(_, value) {
510 if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
511 }

Callers 1

expressionInnerFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected