Merge 842212d5d0 into 0b0296eb2a
This commit is contained in:
commit
d7d3b66f58
|
|
@ -92,7 +92,10 @@ var AST_Token = DEFNODE("Token", "type value line col pos endline endcol endpos
|
||||||
|
|
||||||
var AST_Node = DEFNODE("Node", "start end", {
|
var AST_Node = DEFNODE("Node", "start end", {
|
||||||
clone: function() {
|
clone: function() {
|
||||||
return new this.CTOR(this);
|
var cloned = new this.CTOR(this);
|
||||||
|
cloned.cloned_from = this;
|
||||||
|
|
||||||
|
return cloned;
|
||||||
},
|
},
|
||||||
$documentation: "Base class of all AST nodes",
|
$documentation: "Base class of all AST nodes",
|
||||||
$propdoc: {
|
$propdoc: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user