compiler: cached module - cleanup, remove unneeded code (#2297)

* test

* only call existing module init

* add back comment
This commit is contained in:
joe-conigliaro 2019-10-12 11:38:56 +11:00 committed by GitHub
parent f461a21a50
commit 9faefe85e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 48 deletions

View file

@ -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)