Extract external file declarations to individual trap files

This commit is contained in:
Chris Smowton
2022-03-02 16:36:44 +00:00
committed by Ian Lynagh
parent 2551bb58da
commit 1835022c84
11 changed files with 279 additions and 160 deletions

View File

@@ -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 |

View File

@@ -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

View File

@@ -0,0 +1,4 @@
fun test(url: String) {
val s = url.startsWith("1")
val r = url.removePrefix("2")
}