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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user