-
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
Global module #234
Global module #234
Conversation
Convention: we prefix private queries with `_` until salsa support real visibility.
bors r+ |
234: Global module r=matklad a=matklad This series of commits re-introdces `ModuleDescriptor` as one stop shop for all information about a module. Co-authored-by: Aleksey Kladov <[email protected]>
fn fn_scopes() for FnScopesQuery; | ||
fn _fn_syntax() for FnSyntaxQuery; | ||
fn _submodules() for SubmodulesQuery; |
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.
Why the leading underscores?
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.
These are "private" queries. We currently can't use Rust visibility rules here, because salsa requires everything to be public.
crates/ra_analysis/src/imp.rs
Outdated
let source_root = self.db.file_source_root(file_id); | ||
self.db.module_tree(source_root) | ||
} | ||
/// This return `Vec`: a module may be inclucded from several places. |
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.
"included"
Canceled |
bors r+ |
234: Global module r=matklad a=matklad This series of commits re-introdces `ModuleDescriptor` as one stop shop for all information about a module. Co-authored-by: Aleksey Kladov <[email protected]>
Build succeeded |
This series of commits re-introdces
ModuleDescriptor
as one stop shop for all information about a module.