Delete staticAssertNever in favor of assertTypeIsNever

This commit is contained in:
Andrew Casey 2017-09-08 14:36:21 -07:00
parent 26903552fe
commit e77425f984
2 changed files with 2 additions and 4 deletions

View file

@ -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 {

View file

@ -851,7 +851,7 @@ namespace ts.refactor.extractMethod {
return scope.members;
}
else {
staticAssertNever(scope);
assertTypeIsNever(scope);
}
return emptyArray;