fix syntax errors in tests

This commit is contained in:
Aleksey Kladov 2019-05-28 18:07:39 +03:00
parent 2e3f5af9d4
commit c8bcfe6a05
7 changed files with 137 additions and 121 deletions

View file

@ -116,7 +116,7 @@ impl ModuleSource {
) -> ModuleSource {
match (file_id, decl_id) {
(Some(file_id), _) => {
let source_file = db.parse(file_id);
let source_file = db.parse(file_id).tree;
ModuleSource::SourceFile(source_file)
}
(None, Some(item_id)) => {