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

Method parseExpression

src/parser.js:78–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 parseExpression() {
79 let exprStart = this.idx;
80 let result = this.parseConditional();
81
82 while (this.tkn === T$Eq) {
83 if (!result.isAssignable) {
84 this.err(`Expression ${this.src.slice(exprStart, this.start)} is not assignable`);
85 }
86 this.nextToken();
87 exprStart = this.idx;
88 result = new Assign(result, this.parseConditional());
89 }
90 return result;
91 }
92
93 parseConditional() {
94 let result = this.parseBinary(0);

Callers 8

parseValueConverterMethod · 0.95
parseVariadicArgsMethod · 0.95
parseConditionalMethod · 0.95
parseLeftHandSideMethod · 0.95
parseTemplateMethod · 0.95
aurelia-binding.jsFile · 0.45
aurelia-binding.jsFile · 0.45

Calls 3

parseConditionalMethod · 0.95
errMethod · 0.95
nextTokenMethod · 0.95

Tested by

no test coverage detected