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

parser: get_type2() for the upcoming type system refactoring

This commit is contained in:
Alexander Medvednikov
2019-09-02 14:17:20 +03:00
parent 718041194f
commit 0db1eaa55a
3 changed files with 186 additions and 13 deletions

View File

@ -53,6 +53,7 @@ enum TypeCategory {
union_ // 5
c_struct
c_typedef
array
}
struct Var {
@ -96,6 +97,7 @@ mut:
// This information is needed in the first pass.
is_placeholder bool
gen_str bool // needs `.str()` method generation
}
struct TypeNode {