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

v: support $for attr in Test.attributes (#9836)

This commit is contained in:
Louis Schmieder
2021-04-25 17:29:26 +02:00
committed by GitHub
parent 515e83dcbc
commit fc3b628440
6 changed files with 55 additions and 1 deletions

View File

@ -121,3 +121,18 @@ pub:
is_mut bool
typ int
}
pub enum AttributeKind {
plain // [name]
string // ['name']
number // [123]
comptime_define // [if name]
}
pub struct StructAttribute {
pub:
name string
has_arg bool
arg string
kind AttributeKind
}