MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / relation

Function relation

ServerEditorWeb/ace/worker-javascript.js:3374–3404  ·  view source on GitHub ↗
(s, f)

Source from the content-addressed store, hash-verified

3372 }
3373
3374 function relation(s, f) {
3375 var x = symbol(s, 100);
3376
3377 x.led = function (left) {
3378 nobreaknonadjacent(state.tokens.prev, state.tokens.curr);
3379 var right = expression(100);
3380
3381 if (isIdentifier(left, "NaN") || isIdentifier(right, "NaN")) {
3382 warning("W019", this);
3383 } else if (f) {
3384 f.apply(this, [left, right]);
3385 }
3386
3387 if (!left || !right) {
3388 quit("E041", state.tokens.curr.line);
3389 }
3390
3391 if (left.id === "!") {
3392 warning("W018", left, "!");
3393 }
3394
3395 if (right.id === "!") {
3396 warning("W018", right, "!");
3397 }
3398
3399 this.left = left;
3400 this.right = right;
3401 return this;
3402 };
3403 return x;
3404 }
3405
3406 function isPoorRelation(node) {
3407 return node &&

Callers 1

Calls 6

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

Tested by

no test coverage detected