| 1 | module builtin |
| 2 | |
| 3 | // FunctionParam holds type information for function and/or method arguments. |
| 4 | pub struct FunctionParam { |
| 5 | pub: |
| 6 | typ int |
| 7 | name string |
| 8 | } |
| 9 | |
| 10 | // FunctionData holds information about a parsed function. |
| 11 | pub struct FunctionData { |
| 12 | pub: |
| 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 |