Starting out the import statement

This commit is contained in:
Fábio Santos
2016-01-29 20:47:49 +00:00
committed by Richard van Velzen
parent 6780d0906c
commit 0465bd270d
4 changed files with 39 additions and 2 deletions

View File

@@ -1037,6 +1037,12 @@ function OutputStream(options) {
DEFPRINT(AST_Const, function(self, output){
self._do_print(output, "const");
});
DEFPRINT(AST_Import, function(self, output) {
output.print("import");
output.space();
self.module_name.print(output);
output.semicolon();
});
function parenthesize_for_noin(node, output, noin) {
if (!noin) node.print(output);