Rename add_decls() to use_decls() (#395)

To reflect better what the method actually does.
This commit is contained in:
Jakub Žádník 2021-12-02 00:25:51 +02:00 committed by GitHub
parent d8c721282b
commit 124561ff12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -763,7 +763,7 @@ pub fn parse_use(
};
// Extend the current scope with the module's overlay
working_set.add_decls(decls_to_use);
working_set.use_decls(decls_to_use);
// Create the Use command call
let use_decl_id = working_set

View file

@ -595,7 +595,7 @@ impl<'a> StateWorkingSet<'a> {
decl_id
}
pub fn add_decls(&mut self, decls: Vec<(Vec<u8>, DeclId)>) {
pub fn use_decls(&mut self, decls: Vec<(Vec<u8>, DeclId)>) {
let scope_frame = self
.delta
.scope