Skip to content

Commit

Permalink
fix(astBuilder): fix export statment (AssemblyScript#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody authored Aug 2, 2021
1 parent 551b312 commit b7a3db8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extra/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,9 @@ export class ASTBuilder {
sb.push("declare ");
}
var members = node.members;
if (members != null && members.length > 0) {
if (members == null) {
sb.push("export *");
} else if (members.length > 0) {
let numMembers = members.length;
sb.push("export {\n");
let indentLevel = ++this.indentLevel;
Expand Down

0 comments on commit b7a3db8

Please sign in to comment.