diff options
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 8 | ||||
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 4 | ||||
-rw-r--r-- | lib/handlebars/compiler/printer.js | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 5538f40..8fa6495 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -201,12 +201,12 @@ var AST = { this.stringModeValue = string; }, - IntegerNode: function(integer, locInfo) { + NumberNode: function(number, locInfo) { LocationInfo.call(this, locInfo); - this.type = "INTEGER"; + this.type = "NUMBER"; this.original = - this.integer = integer; - this.stringModeValue = Number(integer); + this.number = number; + this.stringModeValue = Number(number); }, BooleanNode: function(bool, locInfo) { diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index b92289a..83eca24 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -321,8 +321,8 @@ Compiler.prototype = { this.opcode('pushString', string.string); }, - INTEGER: function(integer) { - this.opcode('pushLiteral', integer.integer); + NUMBER: function(number) { + this.opcode('pushLiteral', number.number); }, BOOLEAN: function(bool) { diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index b7b760f..be66d73 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -108,8 +108,8 @@ PrintVisitor.prototype.STRING = function(string) { return '"' + string.string + '"'; }; -PrintVisitor.prototype.INTEGER = function(integer) { - return "INTEGER{" + integer.integer + "}"; +PrintVisitor.prototype.NUMBER = function(number) { + return "NUMBER{" + number.number + "}"; }; PrintVisitor.prototype.BOOLEAN = function(bool) { |