summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-26 20:35:33 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-26 20:36:36 -0600
commit5c921cafebee438fa27d417ae701b24323373a30 (patch)
treeb83b875444816351d3e45f13e8ddf3769294cad1 /lib/handlebars/compiler/visitor.js
parent697bbe59cad06bc74a945f7e26fc0af333a01d47 (diff)
downloadhandlebars.js-5c921cafebee438fa27d417ae701b24323373a30.zip
handlebars.js-5c921cafebee438fa27d417ae701b24323373a30.tar.gz
handlebars.js-5c921cafebee438fa27d417ae701b24323373a30.tar.bz2
Replace DataNode and IdNode with PathNode
This is a breaking change for string mode users as there is no longer a distinct type for data parameters. Instead data consumers should look for the @ prefix value.
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r--lib/handlebars/compiler/visitor.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/handlebars/compiler/visitor.js b/lib/handlebars/compiler/visitor.js
index a2ad7bb..e191bbd 100644
--- a/lib/handlebars/compiler/visitor.js
+++ b/lib/handlebars/compiler/visitor.js
@@ -45,6 +45,8 @@ Visitor.prototype = {
this.accept(sexpr.hash);
},
+ PathExpression: function(id) {},
+
hash: function(hash) {
var pairs = hash.pairs;
@@ -53,14 +55,9 @@ Visitor.prototype = {
}
},
- DATA: function(data) {
- this.accept(data.id);
- },
-
StringLiteral: function(string) {},
NumberLiteral: function(number) {},
- BooleanLiteral: function(bool) {},
- ID: function(id) {}
+ BooleanLiteral: function(bool) {}
};
export default Visitor;