OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.
(trait int)
| 1018 | // OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be |
| 1019 | // successfully invoked. |
| 1020 | func OverloadOperandTrait(trait int) OverloadOpt { |
| 1021 | return func(o *OverloadDecl) (*OverloadDecl, error) { |
| 1022 | o.operandTrait = trait |
| 1023 | return o, nil |
| 1024 | } |
| 1025 | } |
| 1026 | |
| 1027 | // NewConstant creates a new constant declaration. |
| 1028 | func NewConstant(name string, t *types.Type, v ref.Val) *VariableDecl { |
no outgoing calls