Add compilation-units test

This commit is contained in:
Chris Smowton
2022-01-19 16:49:01 +00:00
committed by Ian Lynagh
parent 7a756e3be9
commit 27b0d579d0
3 changed files with 19 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,5 @@
import java
from CompilationUnit cu
where cu.fromSource() or cu.toString().matches("%List%")
select cu.toString(), cu.getLocation().toString().regexpReplaceAll(".*/", ".../")

View File

@@ -0,0 +1,5 @@
class A {
val a : ArrayList<String> = ArrayList<String>()
}