Repository navigation
Commit cda099f
Reference the class when its name stands for the companion
Port #973's resolved-qualifier references: a class name used as its
companion object's receiver (`Bar.instance()`, `CompanionOwner.create()`)
now references the class (`Bar#`) instead of the companion
(`Bar#Companion#`). Naming the companion explicitly (`Bar.Companion`,
`Foo.Factory`) still references it.
Amp-Thread-ID: https://ampcode.com/threads/T-01a153c0-ec1f-774a-993c-bca3256017ce
Co-authored-by: Amp <amp@ampcode.com>1 parent ba94b26 commit cda099f
3 files changed
Lines changed: 17 additions & 2 deletions
File tree
- scip-kotlin-analysis/src
- main/kotlin/org/scip_code/scip_java/kotlin_analysis
- test/kotlin/org/scip_code/scip_java/kotlin_analysis
- scip-snapshots/expected/kotlin/common/scip-snapshots/cases/kotlin/common/src/main/kotlin/snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
233 | 248 | | |
234 | 249 | | |
235 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments