summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/ast.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-26 19:22:09 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-26 19:22:09 -0600
commit697bbe59cad06bc74a945f7e26fc0af333a01d47 (patch)
tree9d51923ba37e8960c371c67db181d33fdf63bf29 /lib/handlebars/compiler/ast.js
parent2a4819d75cba7513946af5cf28ee22881561814f (diff)
downloadhandlebars.js-697bbe59cad06bc74a945f7e26fc0af333a01d47.zip
handlebars.js-697bbe59cad06bc74a945f7e26fc0af333a01d47.tar.gz
handlebars.js-697bbe59cad06bc74a945f7e26fc0af333a01d47.tar.bz2
Update literal ast nodes for new spec
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r--lib/handlebars/compiler/ast.js15
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';
}
};