Skip to content

Commit e191fab

Browse files
committed
JS: Update API usage in definitions.qll
1 parent 9d07fff commit e191fab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

javascript/ql/lib/definitions.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import javascript
77
import IDEContextual
88
private import Declarations.Declarations
9-
private import semmle.javascript.internal.TypeResolution
109

1110
/**
1211
* Gets the kind of reference that `r` represents.
@@ -127,7 +126,7 @@ private predicate propertyLookup(Expr prop, AstNode write, string kind) {
127126
private predicate typeLookup(AstNode ref, AstNode decl, string kind) {
128127
exists(TypeAccess typeAccess |
129128
ref = typeAccess.getIdentifier() and
130-
typeAccess = TypeResolution::trackType(decl) and
129+
typeAccess.getTypeBinding().getTypeDefinition() = decl and
131130
kind = "T"
132131
)
133132
}

0 commit comments

Comments
 (0)