MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / maybeTarget

Function maybeTarget

lib/web/CodeMirror/mode/javascript/javascript.js:499–505  ·  view source on GitHub ↗
(noComma)

Source from the content-addressed store, hash-verified

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

Callers 1

expressionInnerFunction · 0.85

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected