Skip to content

Commit eced0e0

Browse files
committed
Rename misnomer function
1 parent 2669ce7 commit eced0e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/utilities.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6267,7 +6267,7 @@ namespace ts {
62676267
export function isValidTypeOnlyAliasUseSite(useSite: Node): boolean {
62686268
return !!(useSite.flags & NodeFlags.Ambient)
62696269
|| isPartOfTypeQuery(useSite)
6270-
|| isFirstIdentifierOfNonEmittingHeritageClause(useSite)
6270+
|| isIdentifierInNonEmittingHeritageClause(useSite)
62716271
|| isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite)
62726272
|| !isExpressionNode(useSite);
62736273
}
@@ -6290,8 +6290,8 @@ namespace ts {
62906290
return containerKind === SyntaxKind.InterfaceDeclaration || containerKind === SyntaxKind.TypeLiteral;
62916291
}
62926292

6293-
/** Returns true for the first identifier of 1) an `implements` clause, and 2) an `extends` clause of an interface. */
6294-
function isFirstIdentifierOfNonEmittingHeritageClause(node: Node): boolean {
6293+
/** Returns true for an identifier in 1) an `implements` clause, and 2) an `extends` clause of an interface. */
6294+
function isIdentifierInNonEmittingHeritageClause(node: Node): boolean {
62956295
if (node.kind !== SyntaxKind.Identifier) return false;
62966296
const heritageClause = findAncestor(node.parent, parent => {
62976297
switch (parent.kind) {

0 commit comments

Comments
 (0)