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

Find definition for member declarations, fix definition nodes, add SyntaxNodeExt::cast #255

Open
wants to merge 1 commit into
base: spr/main/c00cbbc0
Choose a base branch
from

Conversation

Copy link
Contributor

@piotmag769 piotmag769 left a comment

Choose a reason for hiding this comment

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

Just realised that I forgot to create an issue for it a few months ago xD Ty for fixing

db: &AnalysisDatabase,
identifier: &ast::TerminalIdentifier,
) -> Option<MemberId> {
let member = identifier.as_syntax_node().parent()?.cast::<ast::Member>(db)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Smart, that's actually the only possible case lol

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.

3 participants