Remove old references to deprecated assertion node types (#56073)

This commit is contained in:
Jake Bailey
2023-10-11 12:54:27 -07:00
committed by GitHub
parent 5a97ce8281
commit d3c7d96d2c
2 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -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?.(