added mangler and other stuff
This commit is contained in:
@@ -804,12 +804,20 @@ function OutputStream(options) {
|
||||
DEFPRINT(AST_Symbol, function(self, output){
|
||||
output.print_name(self.name);
|
||||
});
|
||||
DEFPRINT(AST_SymbolDeclaration, function(self, output){
|
||||
output.print_name(self.mangled_name || self.name);
|
||||
});
|
||||
DEFPRINT(AST_SymbolRef, function(self, output){
|
||||
var def = self.symbol;
|
||||
if (def) {
|
||||
def.print(output);
|
||||
} else {
|
||||
output.print_name(self.name);
|
||||
}
|
||||
});
|
||||
DEFPRINT(AST_This, function(self, output){
|
||||
output.print("this");
|
||||
});
|
||||
DEFPRINT(AST_Label, function(self, output){
|
||||
output.print_name(self.name);
|
||||
});
|
||||
DEFPRINT(AST_Constant, function(self, output){
|
||||
output.print(self.getValue());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user