NewVariableWithDoc creates a new variable declaration with usage documentation.
(name string, t *types.Type, doc string)
| 940 | |
| 941 | // NewVariableWithDoc creates a new variable declaration with usage documentation. |
| 942 | func NewVariableWithDoc(name string, t *types.Type, doc string) *VariableDecl { |
| 943 | return &VariableDecl{name: name, varType: t, doc: doc} |
| 944 | } |
| 945 | |
| 946 | // VariableDecl defines a variable declaration which may optionally have a constant value. |
| 947 | type VariableDecl struct { |
no outgoing calls