diff --git a/modules/change_detection/src/parser/ast.js b/modules/change_detection/src/parser/ast.js index 38f6ff0546..8014c494d7 100644 --- a/modules/change_detection/src/parser/ast.js +++ b/modules/change_detection/src/parser/ast.js @@ -21,6 +21,9 @@ export class ImplicitReceiver extends AST { } export class Conditional extends AST { + @FIELD('final condition:AST') + @FIELD('final trueExp:AST') + @FIELD('final falseExp:AST') constructor(condition:AST, trueExp:AST, falseExp:AST){ this.condition = condition; this.trueExp = trueExp; @@ -37,6 +40,9 @@ export class Conditional extends AST { } export class FieldRead extends AST { + @FIELD('final receiver:AST') + @FIELD('final name:string') + @FIELD('final getter:Function') constructor(receiver:AST, name:string, getter:Function) { this.receiver = receiver; this.name = name; @@ -53,6 +59,9 @@ export class FieldRead extends AST { } export class Formatter extends AST { + @FIELD('final exp:AST') + @FIELD('final name:string') + @FIELD('final args:List') constructor(exp:AST, name:string, args:List) { this.exp = exp; this.name = name; diff --git a/modules/change_detection/src/parser/parser.js b/modules/change_detection/src/parser/parser.js index d7407cfe2c..5ee8e4eb6c 100644 --- a/modules/change_detection/src/parser/parser.js +++ b/modules/change_detection/src/parser/parser.js @@ -36,7 +36,7 @@ export class Parser { } class _ParseAST { - @FIELD('final input:String') + @FIELD('final input:string') @FIELD('final tokens:List') @FIELD('final closureMap:ClosureMap') @FIELD('final parseAction:boolean')