NewVariableWithDoc creates a new variable declaration with usage documentation.
(name string, t *types.Type, doc string)
| 1036 | |
| 1037 | // NewVariableWithDoc creates a new variable declaration with usage documentation. |
| 1038 | func NewVariableWithDoc(name string, t *types.Type, doc string) *VariableDecl { |
| 1039 | return &VariableDecl{name: name, varType: t, doc: doc} |
| 1040 | } |
| 1041 | |
| 1042 | // VariableDecl defines a variable declaration which may optionally have a constant value. |
| 1043 | type VariableDecl struct { |
no outgoing calls