diff options
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 26ea4ab..44b26ec 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -142,25 +142,22 @@ var AST = { StringNode: function(string, locInfo) { this.loc = locInfo; - this.type = "STRING"; + this.type = 'StringLiteral'; this.original = - this.string = - this.stringModeValue = string; + this.value = string; }, NumberNode: function(number, locInfo) { this.loc = locInfo; - this.type = "NUMBER"; + this.type = 'NumberLiteral'; this.original = - this.number = number; - this.stringModeValue = Number(number); + this.value = Number(number); }, BooleanNode: function(bool, locInfo) { this.loc = locInfo; - this.type = "BOOLEAN"; - this.bool = bool; - this.stringModeValue = bool === "true"; + this.type = 'BooleanLiteral'; + this.value = bool === 'true'; } }; |