File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -969,7 +969,7 @@ namespace ts {
969
969
970
970
971
971
function checkAndReportErrorForExtendingInterface(errorLocation: Node): boolean {
972
- const expression = climbToEntityNameOfExpressionWithTypeArguments (errorLocation);
972
+ const expression = getEntityNameForExtendingInterface (errorLocation);
973
973
const isError = !!(expression && resolveEntityName(expression, SymbolFlags.Interface, /*ignoreErrors*/ true));
974
974
if (isError) {
975
975
error(errorLocation, Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, getTextOfNode(expression));
@@ -980,11 +980,11 @@ namespace ts {
980
980
* Climbs up parents to an ExpressionWithTypeArguments, and returns its expression,
981
981
* but returns undefined if that expression is not an EntityNameExpression.
982
982
*/
983
- function climbToEntityNameOfExpressionWithTypeArguments (node: Node): EntityNameExpression | undefined {
983
+ function getEntityNameForExtendingInterface (node: Node): EntityNameExpression | undefined {
984
984
switch (node.kind) {
985
985
case SyntaxKind.Identifier:
986
986
case SyntaxKind.PropertyAccessExpression:
987
- return node.parent ? climbToEntityNameOfExpressionWithTypeArguments (node.parent) : undefined;
987
+ return node.parent ? getEntityNameForExtendingInterface (node.parent) : undefined;
988
988
case SyntaxKind.ExpressionWithTypeArguments:
989
989
Debug.assert(isEntityNameExpression((<ExpressionWithTypeArguments>node).expression));
990
990
return <EntityNameExpression>(<ExpressionWithTypeArguments>node).expression
You can’t perform that action at this time.
0 commit comments