Add location tracking to sexpr
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
+2
-2
@@ -71,8 +71,8 @@ simpleInverse
|
||||
;
|
||||
|
||||
sexpr
|
||||
: path param* hash? -> new yy.SexprNode([$1].concat($2), $3)
|
||||
| dataName -> new yy.SexprNode([$1], null)
|
||||
: path param* hash? -> new yy.SexprNode([$1].concat($2), $3, @$)
|
||||
| dataName -> new yy.SexprNode([$1], null, @$)
|
||||
;
|
||||
|
||||
param
|
||||
|
||||
Reference in New Issue
Block a user