mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 12:03:44 -05:00
Remove old references to deprecated assertion node types (#56073)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user