1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: fix mod_path_to_full_name to be compliant with --path option (#10149)

This commit is contained in:
R cqls
2021-05-25 06:46:40 +02:00
committed by GitHub
parent f3274700cd
commit 5b8402bccb
2 changed files with 12 additions and 7 deletions

View File

@@ -2544,7 +2544,7 @@ fn (mut p Parser) module_decl() ast.Module {
}
module_pos = attrs_pos.extend(name_pos)
}
full_name := util.qualify_module(name, p.file_name)
full_name := util.qualify_module(p.pref, name, p.file_name)
p.mod = full_name
p.builtin_mod = p.mod == 'builtin'
mod_node = ast.Module{