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

feat(lsp): goto implementations for trait methods #3723

Closed
Tracked by #1574
kobyhallx opened this issue Dec 8, 2023 · 1 comment
Closed
Tracked by #1574

feat(lsp): goto implementations for trait methods #3723

kobyhallx opened this issue Dec 8, 2023 · 1 comment

Comments

@kobyhallx
Copy link
Contributor

kobyhallx commented Dec 8, 2023

Considering snippet below

trait Fieldable {
    fn to_field(self) -> Field;
}

impl Fieldable for u32 {
    fn to_field(self) -> Field {
        let res = self as Field;
        res * 3    
    }
}

fn main(x: u32) {
    assert(x.to_field() == 15);
}

User should be able to navigate to implementations of to_field when on that symbol of line assert(x.to_field() == 15); which should result in navigation to fn to_field(self) -> Field { symbol of impl Fieldable for u32.

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Dec 8, 2023
@kobyhallx
Copy link
Contributor Author

This is working through functions navigation.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant