From a51a78c496d085b7b18b6a60414d90b04b6f4f3c Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Fri, 4 Sep 2015 16:34:55 -0700 Subject: [PATCH] Parser: fixed warning in debug level 1 about export keyword on ts.ModuleDeclaration --- source/parser.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/parser.ts b/source/parser.ts index a0d9aad..5ca89a4 100644 --- a/source/parser.ts +++ b/source/parser.ts @@ -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; @@ -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();