Starting destructuring expressions
This commit is contained in:
@@ -1179,6 +1179,17 @@ function OutputStream(options) {
|
||||
var def = self.definition();
|
||||
output.print_name(def ? def.mangled_name || def.name : self.name);
|
||||
});
|
||||
DEFPRINT(AST_ObjectSymbol, function(self, output){
|
||||
var def = self.symbol.definition();
|
||||
if (def && def.mangled_name) {
|
||||
output.print(self.symbol.name);
|
||||
output.print(':');
|
||||
output.space();
|
||||
output.print(def.mangled_name);
|
||||
} else {
|
||||
output.print(self.symbol.name);
|
||||
}
|
||||
});
|
||||
DEFPRINT(AST_Undefined, function(self, output){
|
||||
output.print("void 0");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user