We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2690355 commit e77425fCopy full SHA for e77425f
2 files changed
src/compiler/utilities.ts
@@ -500,13 +500,11 @@ namespace ts {
500
case SyntaxKind.ArrowFunction:
501
return true;
502
default:
503
- staticAssertNever(node);
+ assertTypeIsNever(node);
504
return false;
505
}
506
507
508
- export function staticAssertNever(_: never): void {}
509
-
510
// Gets the nearest enclosing block scope container that has the provided node
511
// as a descendant, that is not the provided node.
512
export function getEnclosingBlockScopeContainer(node: Node): Node {
src/services/refactors/extractMethod.ts
@@ -851,7 +851,7 @@ namespace ts.refactor.extractMethod {
851
return scope.members;
852
853
else {
854
- staticAssertNever(scope);
+ assertTypeIsNever(scope);
855
856
857
return emptyArray;
0 commit comments