Skip to content

Commit

Permalink
Changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
navya9singh committed Jan 30, 2023
1 parent 341f2d5 commit ebd498f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44696,7 +44696,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
return node.parent.kind === SyntaxKind.TypeReference;
}

function isHeritageClauseElementIdentifier(node: Node): boolean {
function isInNameOfExpressionWithTypeArguments(node: Node): boolean {
while (node.parent.kind === SyntaxKind.PropertyAccessExpression) {
node = node.parent;
}
Expand Down Expand Up @@ -44822,7 +44822,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
name = name.parent as QualifiedName | PropertyAccessEntityNameExpression | JSDocMemberName;
}

if (isHeritageClauseElementIdentifier(name)) {
if (isInNameOfExpressionWithTypeArguments(name)) {
let meaning = SymbolFlags.None;
if (name.parent.kind === SyntaxKind.ExpressionWithTypeArguments) {
//An 'ExpressionWithTypeArguments' may appear in type space (interface Foo extends Bar<T>),
Expand Down

0 comments on commit ebd498f

Please sign in to comment.