Open swift-ci opened 5 years ago
Issue Description:
protocol Aaa { func bbb() } class Ccc { func bbb() { } //5 } extension Ccc: Aaa { } //7 class Ddd: Ccc { } //8
If you ask for implementations for function `bbb` in the protocol, Sourcekit-LSP will return positions at lines 7 and 8. I would expect it to return the position of the method at line 5.
rdar://95597776
Environment
commit c0d2ad0eb8a2c371ca2c5c9f65b4f71baece24dc of sourcekit-lspAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | SourceKit-LSP | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 1f8f35a85d2991c3ff9d52e044c6482dIssue Description:
If you ask for implementations for function `bbb` in the protocol, Sourcekit-LSP will return positions at lines 7 and 8. I would expect it to return the position of the method at line 5.