Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Parser: fixed warning in debug level 1 about export keyword on ts.Mod…
Browse files Browse the repository at this point in the history
…uleDeclaration
  • Loading branch information
joshtynjala committed Sep 4, 2015
1 parent 25acd0f commit a51a78c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ class TS2ASParser
//safe to skip declare keyword
return;
}
if(node.kind === ts.SyntaxKind.ExportKeyword)
{
//safe to skip export keyword
return;
}
this.readPackageLevelDefinitions(node);
});
this._currentModuleNeedsRequire = false;
Expand Down Expand Up @@ -662,6 +667,11 @@ class TS2ASParser
//we already took care of the declare keyword
return;
}
if(node.kind === ts.SyntaxKind.ExportKeyword)
{
//we already took care of the export keyword
return;
}
this.populatePackageLevelDefinitions(node);
});
this._moduleStack.pop();
Expand Down

0 comments on commit a51a78c

Please sign in to comment.