-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Add to resolve
's public API
#34655
Add to resolve
's public API
#34655
Conversation
|
} | ||
} | ||
} | ||
|
||
None | ||
} | ||
|
||
pub fn resolve_ident_in_module_lexical_scope( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you comment to explain what 'module lexical scope' means
2e73eec
to
54698df
Compare
54698df
to
6e0bd44
Compare
@nrc After thinking about this some more, I reimplemented this PR to provide a more powerful API. |
iirc, |
otherwise, this lgtm |
@nrc Hmm, we don't have a testing framework for There is no use for this function in the However, we don't have a way to get a |
OK, that sounds like a lot of work. Could you file an issue for a test so we don't forget, then add a |
Sounds good, done. @bors r=nrc |
📌 Commit 58dd06d has been approved by |
⌛ Testing commit 58dd06d with merge b4e11c2... |
Add to `resolve`'s public API This adds a public method `with_module_lexical_scope` to `Resolver` to allow users to resolve a path in the lexical scope of an arbitrary module. r? @nrc
This adds a public method
with_module_lexical_scope
toResolver
to allow users to resolve a path in the lexical scope of an arbitrary module.r? @nrc