Skip to content

Commit 97821ff

Browse files
Port scip-kotlinc test cases from #973 to KotlinAnalysisIndexerTest
#973 added 17 test cases to scip-kotlinc's AnalyzerTest and extended `type operators`; replacing scip-kotlinc deleted them. Run the same sources through KotlinAnalysisIndexer instead, using a copy of the ScipBuilders DSL. The #973 output changes are not part of scip-kotlin-analysis yet, so the expectations follow its current output: - No `kind` or `enclosing_symbol` assertions. - Extension functions and properties keep top-level symbols (`sample/foo().` instead of `sample/String#foo().`). - Enum entries render as `val`, and members of an enum entry body are `sample/Op#PLUS.apply().` instead of locals of an anonymous class. - `Foo.Factory` emits separate `Foo#` and `Foo#Factory#` references, an implicit companion receiver references `Bar#Companion#`, and the unnamed companion definition range ends at the end of its first line. Signature assertions for local functions and extension receivers are dropped: scip-kotlin-analysis currently renders `public final fun inner()` for local functions and omits the extension receiver. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a153c0-ec1f-774a-993c-bca3256017ce
1 parent d25d6f0 commit 97821ff

2 files changed

Lines changed: 1621 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)