MCPcopy Create free account
hub / github.com/aurelia/binding / parseBinary

Method parseBinary

src/parser.js:104–116  ·  view source on GitHub ↗
(minPrecedence)

Source from the content-addressed store, hash-verified

102 }
103
104 parseBinary(minPrecedence) {
105 let left = this.parseLeftHandSide(0);
106
107 while (this.tkn & T$BinaryOp) {
108 const opToken = this.tkn;
109 if ((opToken & T$Precedence) <= minPrecedence) {
110 break;
111 }
112 this.nextToken();
113 left = new Binary(TokenValues[opToken & T$TokenMask], left, this.parseBinary(opToken & T$Precedence));
114 }
115 return left;
116 }
117
118 parseLeftHandSide(context) {
119 let result;

Callers 2

parseConditionalMethod · 0.95
aurelia-binding.jsFile · 0.80

Calls 2

parseLeftHandSideMethod · 0.95
nextTokenMethod · 0.95

Tested by

no test coverage detected