Repository navigation
Commit a0420de
committed
fix(lsp): qualify Kotlin LSP caller/callee QNs with module_qn
The Kotlin LSP initialized package_qn to "" for files without a source
`package` declaration, so it emitted bare resolved-call QNs (caller_qn
"caller", callee_qn "helper"). The pipeline join keys on an exact
caller_qn == enclosing_func_qn match, but the textual extractor qualifies
the enclosing function with the FS-path module_qn ("<project>.main.caller").
Bare != qualified, so every Kotlin LSP resolution was dropped and no
strategy-tagged CALLS edge survived.
Initialize package_qn to module_qn (the same FS-path prefix the textual
extractor uses); a source `package_header`, when present, still overrides
it for cross-file import resolution. Recovers the Kotlin top_level/method/
static/this/super/... LSP strategy reproductions (kt suite 11->15).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 7b7684b commit a0420de
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4076 | 4076 | | |
4077 | 4077 | | |
4078 | 4078 | | |
4079 | | - | |
4080 | | - | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
4081 | 4084 | | |
4082 | | - | |
4083 | | - | |
| 4085 | + | |
| 4086 | + | |
4084 | 4087 | | |
4085 | 4088 | | |
4086 | 4089 | | |
| |||
0 commit comments