Don't mangle exported symbols

This commit is contained in:
Fábio Santos
2016-02-27 12:40:57 +00:00
committed by Richard van Velzen
parent ce84a706a3
commit 0bc4f6edb4
3 changed files with 48 additions and 10 deletions

View File

@@ -745,6 +745,16 @@ var AST_Export = DEFNODE("Export", "exported_definition exported_value is_defaul
exported_value: "[AST_Node?] An exported value",
is_default: "[Boolean] Whether this is the default exported value of this module"
},
_walk: function (visitor) {
visitor._visit(this, function () {
if (this.exported_definition) {
this.exported_definition._walk(visitor);
}
if (this.exported_value) {
this.exported_value._walk(visitor);
}
});
}
}, AST_Statement);
var AST_VarDef = DEFNODE("VarDef", "name value", {