Skip to content

Commit 6814a9f

Browse files
author
Andy Hanson
committed
Rename function
1 parent dc19223 commit 6814a9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ namespace ts {
969969

970970

971971
function checkAndReportErrorForExtendingInterface(errorLocation: Node): boolean {
972-
const expression = climbToEntityNameOfExpressionWithTypeArguments(errorLocation);
972+
const expression = getEntityNameForExtendingInterface(errorLocation);
973973
const isError = !!(expression && resolveEntityName(expression, SymbolFlags.Interface, /*ignoreErrors*/ true));
974974
if (isError) {
975975
error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression));
@@ -980,11 +980,11 @@ namespace ts {
980980
* Climbs up parents to an ExpressionWithTypeArguments, and returns its expression,
981981
* but returns undefined if that expression is not an EntityNameExpression.
982982
*/
983-
function climbToEntityNameOfExpressionWithTypeArguments(node: Node): EntityNameExpression | undefined {
983+
function getEntityNameForExtendingInterface(node: Node): EntityNameExpression | undefined {
984984
switch (node.kind) {
985985
case SyntaxKind.Identifier:
986986
case SyntaxKind.PropertyAccessExpression:
987-
return node.parent ? climbToEntityNameOfExpressionWithTypeArguments(node.parent) : undefined;
987+
return node.parent ? getEntityNameForExtendingInterface(node.parent) : undefined;
988988
case SyntaxKind.ExpressionWithTypeArguments:
989989
Debug.assert(isEntityNameExpression((<ExpressionWithTypeArguments>node).expression));
990990
return <EntityNameExpression>(<ExpressionWithTypeArguments>node).expression

0 commit comments

Comments
 (0)