mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
| file://:0:0:0:0 | | Package |
|
||||
| test.kt:0:0:0:0 | TestKt | Class |
|
||||
| test.kt:0:0:0:0 | test | CompilationUnit |
|
||||
| test.kt:2:1:4:1 | bar | ExtensionMethod |
|
||||
| test.kt:2:1:4:1 | boolean | TypeAccess |
|
||||
| test.kt:2:6:2:6 | T | TypeVariable |
|
||||
| test.kt:2:9:2:14 | <this> | Parameter |
|
||||
| test.kt:2:9:2:14 | Foo<T> | TypeAccess |
|
||||
| test.kt:2:9:2:14 | T | TypeAccess |
|
||||
| test.kt:2:31:4:1 | { ... } | BlockStmt |
|
||||
| test.kt:3:5:3:15 | return ... | ReturnStmt |
|
||||
| test.kt:3:12:3:15 | true | BooleanLiteral |
|
||||
| test.kt:6:1:10:1 | Foo | Class, GenericType, ParameterizedType |
|
||||
| test.kt:6:1:10:1 | Foo | Constructor |
|
||||
| test.kt:6:1:10:1 | super(...) | SuperConstructorInvocationStmt |
|
||||
| test.kt:6:1:10:1 | { ... } | BlockStmt |
|
||||
| test.kt:6:1:10:1 | { ... } | BlockStmt |
|
||||
| test.kt:6:11:6:11 | T | TypeVariable |
|
||||
| test.kt:7:5:9:5 | boolean | TypeAccess |
|
||||
| test.kt:7:5:9:5 | foo | Method |
|
||||
| test.kt:7:24:9:5 | { ... } | BlockStmt |
|
||||
| test.kt:8:9:8:20 | return ... | ReturnStmt |
|
||||
| test.kt:8:16:8:20 | T | TypeAccess |
|
||||
| test.kt:8:16:8:20 | TestKt | TypeAccess |
|
||||
| test.kt:8:16:8:20 | bar(...) | MethodCall |
|
||||
| test.kt:8:16:8:20 | this | ThisAccess |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
|
||||
from Element e
|
||||
where e.fromSource()
|
||||
select e, concat(e.getAPrimaryQlClass(), ", ")
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
fun <T> Foo<T>.bar(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
class Foo<T> {
|
||||
fun foo(): Boolean {
|
||||
return bar()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user