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

nixd: add basic goto-def support via libnixf (no eval) #400

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Conversation

inclyc
Copy link
Member

@inclyc inclyc commented Apr 9, 2024

No description provided.


const nixf::Node *Var = PMA->upTo(*N, nixf::Node::NK_ExprVar);
if (!Var) [[unlikely]] {
Reply(error("cannot find AST node on given position"));
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
Reply(error("cannot find AST node on given position"));
Reply(error("expression is not an variable"));

@@ -0,0 +1,78 @@

Copy link
Member Author

Choose a reason for hiding this comment

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

empty

@@ -0,0 +1,79 @@

Copy link
Member Author

Choose a reason for hiding this comment

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

empty

@inclyc inclyc merged commit 579d9f7 into main Apr 9, 2024
36 checks passed
@inclyc inclyc deleted the nixd/definition branch April 9, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant