MCPcopy
hub / github.com/MixLabPro/comfyui-mixlab-nodes / maybeTarget

Function maybeTarget

webApp/p5_export/p5-widget/main.bundle.js:34459–34465  ·  view source on GitHub ↗
(noComma)

Source from the content-addressed store, hash-verified

34457 return pass(type == "{" ? statement : expressionNoComma);
34458 }
34459 function maybeTarget(noComma) {
34460 return function(type) {
34461 if (type == ".") return cont(noComma ? targetNoComma : target);
34462 else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
34463 else return pass(noComma ? expressionNoComma : expression);
34464 };
34465 }
34466 function target(_, value) {
34467 if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
34468 }

Callers 1

expressionInnerFunction · 0.85

Calls 2

contFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected