v2 / vlib / builtin / meta_function.v
20 lines · 18 sloc · 467 bytes · d025b7d80d18675ee5817f060e40a5e6c89b6458
Raw
1module builtin
2
3// FunctionParam holds type information for function and/or method arguments.
4pub struct FunctionParam {
5pub:
6 typ int
7 name string
8}
9
10// FunctionData holds information about a parsed function.
11pub struct FunctionData {
12pub:
13 name string
14 location string
15 attrs []string // legacy flattened attributes
16 attributes []VAttribute // structured attributes for `attrs`
17 args []FunctionParam
18 return_type int
19 typ int
20}
21