NewVariableWithDoc creates a new variable declaration with usage documentation.
(name string, t *types.Type, doc string)
| 1124 | |
| 1125 | // NewVariableWithDoc creates a new variable declaration with usage documentation. |
| 1126 | func NewVariableWithDoc(name string, t *types.Type, doc string) *VariableDecl { |
| 1127 | return &VariableDecl{name: name, varType: t, doc: doc} |
| 1128 | } |
| 1129 | |
| 1130 | // VariableDecl defines a variable declaration which may optionally have a constant value. |
| 1131 | type VariableDecl struct { |
no outgoing calls