Commit f7385d6
authored
fix(java): set IsInterfaceMethod for interface methods (#194)
In Java IPC mode `cli.files` is never populated, so the existing
`GetParent` check in export.go could not detect interface parents and
every interface method was emitted with `IsInterfaceMethod=false`.
Fall back to the receiver symbol's Kind (set to SKInterface by the
IPC scanner via `classKind(ci)`) when the LSP-based check yields nil.
Non-Java paths keep their original behaviour: when GetParent succeeds
and reports an interface parent, the method is still skipped.1 parent 5a22592 commit f7385d6
1 file changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
420 | 425 | | |
421 | 426 | | |
422 | | - | |
423 | | - | |
| 427 | + | |
424 | 428 | | |
425 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
426 | 439 | | |
427 | | - | |
428 | | - | |
429 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
430 | 444 | | |
431 | | - | |
432 | 445 | | |
433 | 446 | | |
434 | 447 | | |
| |||
0 commit comments