File tree Expand file tree Collapse file tree
packages/compiler/src/expression_parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,11 +268,39 @@ export class Interpolation extends AST {
268268 }
269269}
270270
271+ type AssignmentOperation = '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '**=' | '&&=' | '||=' | '??=' ;
272+ type BinaryOperation =
273+ | AssignmentOperation
274+ // Logical
275+ | '&&'
276+ | '||'
277+ | '??'
278+ // Equality
279+ | '=='
280+ | '!='
281+ | '==='
282+ | '!=='
283+ // Relational
284+ | '<'
285+ | '>'
286+ | '<='
287+ | '>='
288+ | 'in'
289+ // Additive
290+ | '+'
291+ | '-'
292+ // Multiplicative
293+ | '*'
294+ | '%'
295+ | '/'
296+ // Exponentiation
297+ | '**' ;
298+
271299export class Binary extends AST {
272300 constructor (
273301 span : ParseSpan ,
274302 sourceSpan : AbsoluteSourceSpan ,
275- public operation : string ,
303+ public operation : BinaryOperation ,
276304 public left : AST ,
277305 public right : AST ,
278306 ) {
You can’t perform that action at this time.
0 commit comments