String returns the string representation of the expression, including pointer and variadic prefixes.
()
| 16 | |
| 17 | // String returns the string representation of the expression, including pointer and variadic prefixes. |
| 18 | func (e *Expression) String() string { |
| 19 | value := e.Value |
| 20 | if e.IsStar { |
| 21 | value = "*" + value |
| 22 | } |
| 23 | if e.IsVariadic { |
| 24 | return "[]" + value |
| 25 | } |
| 26 | return value |
| 27 | } |
| 28 | |
| 29 | // Field represents a parameter, result, or struct field in a function or method signature. |
| 30 | type Field struct { |
no outgoing calls