mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Extract static method qualifier type accesses
This commit is contained in:
committed by
Ian Lynagh
parent
ef9a213ae1
commit
2730d07b4c
@@ -0,0 +1,2 @@
|
||||
| test.kt:4:17:4:30 | Class<> | TypeAccess | forName |
|
||||
| test.kt:7:18:7:44 | StringsKt | TypeAccess | format |
|
||||
@@ -0,0 +1,9 @@
|
||||
fun test() {
|
||||
|
||||
// Static method of a class with type parameters:
|
||||
val c = Class.forName("xyz")
|
||||
|
||||
// Static method of a class without one:
|
||||
val s = String.format("Hello %s", "world")
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import java
|
||||
|
||||
from MethodAccess ma
|
||||
select ma.getQualifier(), ma.getQualifier().getAPrimaryQlClass(), ma.getCallee().toString()
|
||||
Reference in New Issue
Block a user