Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Visit type arguments in scope analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Jul 6, 2018
1 parent 61c70f2 commit cbfd03b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/analyze-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ class Referencer extends OriginalReferencer {
super.visitProperty(node);
}

CallExpression(node) {
this._visitTypeAnnotation(node.typeArguments);
super.CallExpression(node);
}

InterfaceDeclaration(node) {
this._createScopeVariable(node, node.id);

Expand Down

0 comments on commit cbfd03b

Please sign in to comment.