mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
compiler: cached module - cleanup, remove unneeded code (#2297)
* test * only call existing module init * add back comment
This commit is contained in:
parent
f461a21a50
commit
9faefe85e1
2 changed files with 7 additions and 48 deletions
|
@ -278,7 +278,7 @@ fn (p mut Parser) parse(pass Pass) {
|
|||
p.builtin_mod = p.mod == 'builtin'
|
||||
p.can_chash = p.mod=='ui' || p.mod == 'darwin'// TODO tmp remove
|
||||
// Import pass - the first and the smallest pass that only analyzes imports
|
||||
|
||||
// fully qualify the module name, eg base64 to encoding.base64
|
||||
fq_mod := p.table.qualify_module(p.mod, p.file_path)
|
||||
p.import_table.module_name = fq_mod
|
||||
p.table.register_module(fq_mod)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue