mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Add compilation-units test
This commit is contained in:
committed by
Ian Lynagh
parent
7a756e3be9
commit
27b0d579d0
@@ -0,0 +1,9 @@
|
||||
| AbstractList | .../AbstractList.class:0:0:0:0 |
|
||||
| AbstractList$RandomAccessSpliterator | .../AbstractList$RandomAccessSpliterator.class:0:0:0:0 |
|
||||
| ArrayList | .../ArrayList.class:0:0:0:0 |
|
||||
| ArrayList$ArrayListSpliterator | .../ArrayList$ArrayListSpliterator.class:0:0:0:0 |
|
||||
| List | .../List.class:0:0:0:0 |
|
||||
| ListIterator | .../ListIterator.class:0:0:0:0 |
|
||||
| MutableList | .../MutableList.class:0:0:0:0 |
|
||||
| MutableListIterator | .../MutableListIterator.class:0:0:0:0 |
|
||||
| test | .../test.kt:0:0:0:0 |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
|
||||
from CompilationUnit cu
|
||||
where cu.fromSource() or cu.toString().matches("%List%")
|
||||
select cu.toString(), cu.getLocation().toString().regexpReplaceAll(".*/", ".../")
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
|
||||
val a : ArrayList<String> = ArrayList<String>()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user