Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emit overridden_symbols for Go to Implementations #59

Merged
merged 5 commits into from
Jul 18, 2023

Conversation

Strum355
Copy link
Contributor

@Strum355 Strum355 commented Jul 17, 2023

Emits semanticdb overridden_symbols for class-like and method declarations

Test plan

Green CI with updated snapshot tests that include implementation relationships.

@Strum355 Strum355 self-assigned this Jul 17, 2023
Previously, this repo had custom logic to snapshot the generated
SemanticDB files, which was missing some SCIP features like
relationships. This commit replaces the custom snapshot logic with the
`scip-java snapshot` command, which prints all SCIP features including
symbol relationships.
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻 I updated the snapshot infrastructure to reuse the logic from scip-java. I didn't figure out how to preserve the shorter paths relative to the source directories, but figured it wouldn't reduce the diff size so much because all symbol occurrences are a different syntax anywaays (they include the semanticdb maven . . prefix).

@Strum355
Copy link
Contributor Author

Will follow up at a later time with support for typealiases. Current behaviour is that the underlying type is added as an implementation, not the typealias and the underlying. Need to investigate what gets emitted for type aliases too, as it may be the underlying instead of a unique symbol for the typealias

@Strum355 Strum355 merged commit f2c67eb into main Jul 18, 2023
5 checks passed
@Strum355 Strum355 deleted the nsc/implementations branch July 18, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants