mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-14 09:49:40 -05:00
Delete staticAssertNever in favor of assertTypeIsNever
This commit is contained in:
@@ -500,13 +500,11 @@ namespace ts {
|
||||
case SyntaxKind.ArrowFunction:
|
||||
return true;
|
||||
default:
|
||||
staticAssertNever(node);
|
||||
assertTypeIsNever(node);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function staticAssertNever(_: never): void {}
|
||||
|
||||
// Gets the nearest enclosing block scope container that has the provided node
|
||||
// as a descendant, that is not the provided node.
|
||||
export function getEnclosingBlockScopeContainer(node: Node): Node {
|
||||
|
||||
@@ -851,7 +851,7 @@ namespace ts.refactor.extractMethod {
|
||||
return scope.members;
|
||||
}
|
||||
else {
|
||||
staticAssertNever(scope);
|
||||
assertTypeIsNever(scope);
|
||||
}
|
||||
|
||||
return emptyArray;
|
||||
|
||||
Reference in New Issue
Block a user