Skip to content

Conversation

@matklad
Copy link
Contributor

@matklad matklad commented Nov 20, 2018

This series of commits re-introdces ModuleDescriptor as one stop shop for all information about a module.

@matklad
Copy link
Contributor Author

matklad commented Nov 20, 2018

bors r+

bors bot added a commit that referenced this pull request Nov 20, 2018
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_syntax() for FnSyntaxQuery;
fn fn_scopes() for FnScopesQuery;
fn _fn_syntax() for FnSyntaxQuery;
fn _submodules() for SubmodulesQuery;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the leading underscores?

Copy link
Contributor Author

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.

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

"included"

@bors
Copy link
Contributor

bors bot commented Nov 20, 2018

Canceled

@matklad
Copy link
Contributor Author

matklad commented Nov 20, 2018

bors r+

bors bot added a commit that referenced this pull request Nov 20, 2018
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]>
@bors
Copy link
Contributor

bors bot commented Nov 20, 2018

Build succeeded

@bors bors bot merged commit a2fdb41 into master Nov 20, 2018
@bors bors bot deleted the global-module-id branch November 20, 2018 14:49
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.

3 participants