Files
codeql/java/ql/test/kotlin/library-tests/extensions_recursion/element.expected
Chris Smowton 37543e7a86 Switch to expanding property initializers and init blocks in-place
Pros:
* <obinit> no longer emitted: one less function per class
* Parameters to the primary constructor, if any, are no longer referred to out of scope
* Simple primary constructor `val` and `var` declarations work as expected

Cons:
* If there are multiple secondary constructors, no primary constructor and long init blocks, there could be considerable duplicate extraction of those init blocks. Hopefully this case is very rare.
2022-05-10 19:51:20 +01:00

21 lines
889 B
Plaintext

| 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:6:2:6 | T | TypeVariable |
| test.kt:2:9:2:14 | <this> | Parameter |
| 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:11:6:11 | T | TypeVariable |
| 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 | bar(...) | MethodAccess |
| test.kt:8:16:8:20 | this | ThisAccess |