diff options
author | kpdecker <kpdecker@gmail.com> | 2013-12-31 13:31:47 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-12-31 13:31:47 -0600 |
commit | f2df220a1f8ecbf2f07ef5b9ba9a317a1d3d6dbc (patch) | |
tree | a7273e75ac19fb1fc4364ad9144259803d8b2c22 /lib/handlebars/compiler/ast.js | |
parent | a2ca31bb193c5c6f073cfeef023feb9cc0e98ce5 (diff) | |
download | handlebars.js-f2df220a1f8ecbf2f07ef5b9ba9a317a1d3d6dbc.zip handlebars.js-f2df220a1f8ecbf2f07ef5b9ba9a317a1d3d6dbc.tar.gz handlebars.js-f2df220a1f8ecbf2f07ef5b9ba9a317a1d3d6dbc.tar.bz2 |
Add location tracking to sexpr
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index ce5ee11..6ccd7f1 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -72,7 +72,9 @@ var AST = { this.isHelper = this.sexpr.isHelper; }, - SexprNode: function(rawParams, hash) { + SexprNode: function(rawParams, hash, locInfo) { + LocationInfo.call(this, locInfo); + this.type = "sexpr"; this.hash = hash; |