diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 2a5fedace13..04fc89a37d0 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -7,7 +7,6 @@ import { arrayFrom, arrayIsEqualTo, AsExpression, - AssertClause, BuilderProgram, CancellationToken, canHaveDecorators, @@ -918,7 +917,7 @@ export function getModeForUsageLocation(file: { impliedNodeFormat?: ResolutionMo } /** @internal */ -export function getResolutionModeOverride(node: AssertClause | ImportAttributes | undefined, grammarErrorOnNode?: (node: Node, diagnostic: DiagnosticMessage) => void) { +export function getResolutionModeOverride(node: ImportAttributes | undefined, grammarErrorOnNode?: (node: Node, diagnostic: DiagnosticMessage) => void) { if (!node) return undefined; if (length(node.elements) !== 1) { grammarErrorOnNode?.( diff --git a/src/services/outliningElementsCollector.ts b/src/services/outliningElementsCollector.ts index 87ac0d10ba9..754541ed507 100644 --- a/src/services/outliningElementsCollector.ts +++ b/src/services/outliningElementsCollector.ts @@ -1,6 +1,5 @@ import { ArrowFunction, - AssertClause, Block, CallExpression, CancellationToken, @@ -302,11 +301,10 @@ function getOutliningSpanForNode(n: Node, sourceFile: SourceFile): OutliningSpan case SyntaxKind.NamedImports: case SyntaxKind.NamedExports: case SyntaxKind.ImportAttributes: - case SyntaxKind.AssertClause: - return spanForImportExportElements(n as NamedImports | NamedExports | AssertClause | ImportAttributes); + return spanForImportExportElements(n as NamedImports | NamedExports | ImportAttributes); } - function spanForImportExportElements(node: NamedImports | NamedExports | AssertClause | ImportAttributes) { + function spanForImportExportElements(node: NamedImports | NamedExports | ImportAttributes) { if (!node.elements.length) { return undefined; }