Files
codeql/java/ql/test-kotlin2/library-tests/variables/variables.expected
Chris Smowton 1afe67ab13 Accept Kotlin 2.1.20 test changes
These are mainly small changes in how source-locations are ascribed to synthetic expressions, plus three real changes:

- The comment extractor is performing better presumably due to improvements in the underlying representation
- *= /= and %= operations are once again extracted correctly; presumably their origin information has been fixed
- Reference to a static final Java field can lead to more constant propagation than before

The last one might be a minor nuisance to someone trying to find references to such a field.
2025-05-13 14:42:15 +01:00

21 lines
1.0 KiB
Plaintext

#select
| variables.kt:3:5:3:21 | prop | int | variables.kt:3:21:3:21 | 1 |
| variables.kt:5:20:5:29 | param | int | file://:0:0:0:0 | <none> |
| variables.kt:6:9:6:26 | int local1 | int | variables.kt:6:22:6:26 | ... + ... |
| variables.kt:8:9:8:26 | int local2 | int | variables.kt:8:22:8:26 | ... + ... |
| variables.kt:10:9:10:26 | int local3 | int | variables.kt:10:22:10:26 | param |
| variables.kt:15:1:15:21 | topLevel | int | variables.kt:15:21:15:21 | 1 |
| variables.kt:21:11:21:18 | o | C1 | file://:0:0:0:0 | <none> |
| variables.kt:21:11:21:18 | o | C1 | variables.kt:21:11:21:18 | o |
| variables.kt:28:9:28:10 | <this> | C1 | file://:0:0:0:0 | <none> |
isFinal
| variables.kt:6:9:6:26 | int local1 | final |
| variables.kt:8:9:8:26 | int local2 | non-final |
| variables.kt:10:9:10:26 | int local3 | final |
compileTimeConstant
| variables.kt:3:5:3:17 | this.prop |
| variables.kt:3:5:3:21 | prop |
| variables.kt:7:17:7:22 | local1 |
| variables.kt:15:1:15:17 | VariablesKt.topLevel |
| variables.kt:15:1:15:21 | VariablesKt.topLevel |