MCPcopy
hub / github.com/PaulTaykalo/objc-dependency-visualizer / relation

Function relation

Scripts/ace/worker-javascript.js:3516–3546  ·  view source on GitHub ↗
(s, f)

Source from the content-addressed store, hash-verified

3514 }
3515
3516 function relation(s, f) {
3517 var x = symbol(s, 100);
3518
3519 x.led = function(left) {
3520 nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
3521 var right = expression(100);
3522
3523 if (isIdentifier(left, "NaN") || isIdentifier(right, "NaN")) {
3524 warning("W019", this);
3525 } else if (f) {
3526 f.apply(this, [left, right]);
3527 }
3528
3529 if (!left || !right) {
3530 quit("E041", state.tokens.curr.line);
3531 }
3532
3533 if (left.id === "!") {
3534 warning("W018", left, "!");
3535 }
3536
3537 if (right.id === "!") {
3538 warning("W018", right, "!");
3539 }
3540
3541 this.left = left;
3542 this.right = right;
3543 return this;
3544 };
3545 return x;
3546 }
3547
3548 function isPoorRelation(node) {
3549 return node &&

Callers 1

Calls 6

nobreaknonadjacentFunction · 0.85
expressionFunction · 0.85
isIdentifierFunction · 0.85
warningFunction · 0.85
quitFunction · 0.85
symbolFunction · 0.70

Tested by

no test coverage detected