MCPcopy Create free account
hub / github.com/Paxa/postbird / maybeTarget

Function maybeTarget

public/codemirror/javascript/javascript.js:457–462  ·  view source on GitHub ↗
(noComma)

Source from the content-addressed store, hash-verified

455 return pass(type == "{" ? statement : expressionNoComma);
456 }
457 function maybeTarget(noComma) {
458 return function(type) {
459 if (type == ".") return cont(noComma ? targetNoComma : target);
460 else return pass(noComma ? expressionNoComma : expression);
461 };
462 }
463 function target(_, value) {
464 if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
465 }

Callers 1

expressionInnerFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected