File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments