Implement the export statement

This commit is contained in:
Fábio Santos
2016-02-27 12:24:18 +00:00
committed by Richard van Velzen
parent 86b5248837
commit ce84a706a3
4 changed files with 70 additions and 1 deletions

View File

@@ -1085,6 +1085,21 @@ function OutputStream(options) {
}
});
DEFPRINT(AST_Export, function(self, output) {
output.print("export");
output.space();
if (self.is_default) {
output.print("default");
output.space();
}
if (self.exported_value) {
self.exported_value.print(output);
} else if (self.exported_definition) {
self.exported_definition.print(output);
}
output.semicolon();
});
function parenthesize_for_noin(node, output, noin) {
if (!noin) node.print(output);
else try {