diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 503c71de19..2749a73e8c 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -105,7 +105,6 @@ import { FunctionOrConstructorTypeNode, FunctionTypeNode, GetAccessorDeclaration, - getAllJSDocTags, getBinaryOperatorPrecedence, getFullWidth, getJSDocCommentRanges, @@ -400,7 +399,6 @@ import { TypeQueryNode, TypeReferenceNode, UnaryExpression, - unescapeLeadingUnderscores, UnionOrIntersectionTypeNode, UnionTypeNode, UpdateExpression, @@ -1585,7 +1583,7 @@ namespace Parser { // Note: any errors at the end of the file that do not precede a regular node, should get // attached to the EOF token. let parseErrorBeforeNextFinishedNode = false; - + const tsPlusExternalTypeCache = new Map>() const tsPlusResolvedPathsCache = new Map() let currentTsPlusTypes: TsPlusTypeDefinition[] | null = null; @@ -1971,7 +1969,7 @@ namespace Parser { (collectTypesIfNotExported || hasModifierOfKind(statement, SyntaxKind.ExportKeyword)) ) { if (statement.tsPlusTypeTags && statement.tsPlusTypeTags.length > 0) { - file.tsPlusContext.type.push(statement); + file.tsPlusContext.type.push(statement); } if (statement.tsPlusNoInheritTags && statement.tsPlusNoInheritTags.length > 0) { file.tsPlusContext.noInherit.push(statement);