classify module from declaration

This commit is contained in:
Ekaterina Babshukova 2019-10-15 22:50:28 +03:00
parent 93c179531b
commit 55e1910d00
4 changed files with 44 additions and 9 deletions

View file

@ -181,7 +181,6 @@ impl Module {
) -> Option<Self> {
let decl_id = match src.ast {
ModuleSource::Module(ref module) => {
assert!(!module.has_semi());
let ast_id_map = db.ast_id_map(src.file_id);
let item_id = ast_id_map.ast_id(module).with_file_id(src.file_id);
Some(item_id)