Skip to content

Commit

Permalink
Fix unused symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Dec 27, 2022
1 parent 4d92c7b commit 5fc6f1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/compiler/parser.ts
Expand Up @@ -105,7 +105,6 @@ import {
FunctionOrConstructorTypeNode,
FunctionTypeNode,
GetAccessorDeclaration,
getAllJSDocTags,
getBinaryOperatorPrecedence,
getFullWidth,
getJSDocCommentRanges,
Expand Down Expand Up @@ -400,7 +399,6 @@ import {
TypeQueryNode,
TypeReferenceNode,
UnaryExpression,
unescapeLeadingUnderscores,
UnionOrIntersectionTypeNode,
UnionTypeNode,
UpdateExpression,
Expand Down Expand Up @@ -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<string, Record<string, TsPlusTypeDefinition[]>>()
const tsPlusResolvedPathsCache = new Map<string, string[]>()
let currentTsPlusTypes: TsPlusTypeDefinition[] | null = null;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5fc6f1a

Please sign in to comment.