Skip to content
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

Merged
merged 11 commits into from
Nov 20, 2018
Merged

Global module #234

merged 11 commits into from
Nov 20, 2018

Conversation

matklad
Copy link
Member

@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
Member 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_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
Member 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
Member 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.

2 participants