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

Make id and root public in AstNode #912

Merged
merged 2 commits into from
Aug 22, 2022
Merged

Conversation

Squadrick
Copy link
Contributor

@Squadrick Squadrick commented Aug 18, 2022

I'm trying to use rust-code-analysis as a library. I can't access the node in the result of AstCallback. The hack-y way is to serialize and deserialize to void the access check, but this should be public.

@Squadrick
Copy link
Contributor Author

@Luni-4 @marco-c Please review.

@Luni-4 Luni-4 self-requested a review August 18, 2022 19:06
Copy link
Collaborator

@Luni-4 Luni-4 left a comment

Choose a reason for hiding this comment

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

Seems fine to me, thank you!

@Squadrick
Copy link
Contributor Author

Some clippy errors are blocking this merge. Should be fixed by #913.

@codecov-commenter
Copy link

Codecov Report

Merging #912 (7817ca2) into master (1cd39d7) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #912      +/-   ##
==========================================
- Coverage   68.55%   68.54%   -0.01%     
==========================================
  Files          60       60              
  Lines       12297    12297              
==========================================
- Hits         8430     8429       -1     
- Misses       3867     3868       +1     
Impacted Files Coverage Δ
src/ast.rs 96.92% <ø> (ø)
src/parser.rs 33.80% <0.00%> (-1.41%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@marco-c marco-c merged commit 7ee331d into mozilla:master Aug 22, 2022
@Squadrick Squadrick deleted the patch-1 branch April 16, 2024 21:37
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.

4 participants