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

Method parseConditional

src/parser.js:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 }
92
93 parseConditional() {
94 let result = this.parseBinary(0);
95
96 if (this.opt(T$Question)) {
97 let yes = this.parseExpression();
98 this.expect(T$Colon);
99 result = new Conditional(result, yes, this.parseExpression());
100 }
101 return result;
102 }
103
104 parseBinary(minPrecedence) {
105 let left = this.parseLeftHandSide(0);

Callers 3

parseExpressionMethod · 0.95
aurelia-binding.jsFile · 0.80
aurelia-binding.jsFile · 0.80

Calls 4

parseBinaryMethod · 0.95
optMethod · 0.95
parseExpressionMethod · 0.95
expectMethod · 0.95

Tested by

no test coverage detected