OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.
(trait int)
| 1008 | // OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be |
| 1009 | // successfully invoked. |
| 1010 | func OverloadOperandTrait(trait int) OverloadOpt { |
| 1011 | return func(o *OverloadDecl) (*OverloadDecl, error) { |
| 1012 | o.operandTrait = trait |
| 1013 | return o, nil |
| 1014 | } |
| 1015 | } |
| 1016 | |
| 1017 | // NewConstant creates a new constant declaration. |
| 1018 | func NewConstant(name string, t *types.Type, v ref.Val) *VariableDecl { |
no outgoing calls