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

parser: use map[string]Type instead of []Type

This commit is contained in:
Alexander Medvednikov
2019-09-01 14:31:43 +03:00
parent 4edccce9a3
commit d078aa360b
3 changed files with 49 additions and 113 deletions

View File

@@ -899,6 +899,9 @@ fn (p mut Parser) get_type() string {
typ += '__$p.lit'
}
mut t := p.table.find_type(typ)
if typ == 'V' {
//println('QQ V res=$t.name')
}
// "typ" not found? try "mod__typ"
if t.name == '' && !p.builtin_mod {
// && !p.first_pass() {