-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Introduce hir::Expr #386
Comments
I'll work on initial macro expansion support next, and after that I can do hir::Expr, if @flodiebold doesn't beat me to it :) I feel like we should introduce |
Here's some more random notes about this:
|
This was referenced Dec 31, 2018
I'll have a go at this now. |
This is done now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, name resolution and type inference is based on the concrete syntax trees (and LocalSyntaxPtrs). This is suboptimal for three reasons:
One solution to this problem is to lower SyntaxNodes into a
hir::Expr
, defined as follows:This representation is position-independent and salsa friendly. To be able to map to concrete syntas though, we'll need the following pair of queries:
The text was updated successfully, but these errors were encountered: