HasBinding indicates whether the overload already has a definition.
()
| 750 | |
| 751 | // HasBinding indicates whether the overload already has a definition. |
| 752 | func (o *OverloadDecl) HasBinding() bool { |
| 753 | return o != nil && (o.unaryOp != nil || o.binaryOp != nil || o.functionOp != nil) |
| 754 | } |
| 755 | |
| 756 | // guardedUnaryOp creates an invocation guard around the provided unary operator, if one is defined. |
| 757 | func (o *OverloadDecl) guardedUnaryOp(funcName string, disableTypeGuards bool) functions.UnaryOp { |
no outgoing calls