mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Extract external file declarations to individual trap files
This commit is contained in:
committed by
Ian Lynagh
parent
2551bb58da
commit
1835022c84
@@ -0,0 +1,4 @@
|
||||
| test.kt:2:17:2:31 | startsWith(...) | test.kt:2:17:2:31 | StringsKt | test.kt:2:13:2:15 | url |
|
||||
| test.kt:2:17:2:31 | startsWith(...) | test.kt:2:17:2:31 | StringsKt | test.kt:2:29:2:29 | 1 |
|
||||
| test.kt:3:17:3:33 | removePrefix(...) | test.kt:3:17:3:33 | StringsKt | test.kt:3:13:3:15 | url |
|
||||
| test.kt:3:17:3:33 | removePrefix(...) | test.kt:3:17:3:33 | StringsKt | test.kt:3:31:3:31 | 2 |
|
||||
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
from MethodAccess ma, Expr qualifier, Argument arg
|
||||
where ma.getQualifier() = qualifier and
|
||||
ma.getAnArgument() = arg
|
||||
select ma, qualifier, arg
|
||||
@@ -0,0 +1,4 @@
|
||||
fun test(url: String) {
|
||||
val s = url.startsWith("1")
|
||||
val r = url.removePrefix("2")
|
||||
}
|
||||
Reference in New Issue
Block a user