You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been diving into the architecture of rust-analyzer but syntax crate seems to have a dependency on the parser crate like upper picture
I would expect the parser to rely on the AST to build a representation of the source code, not the other way around.
Could someone explain why this design choice is made? Is there a specific reason or advantage.
Any insights or examples would be greatly appreciated!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions