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

Function maybeTarget

static/libs/javascript.js:503–509  ·  view source on GitHub ↗
(noComma)

Source from the content-addressed store, hash-verified

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

Callers 1

expressionInnerFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.70

Tested by

no test coverage detected