FunctionDecl defines a function name, overload set, and optionally a singleton definition for all overload instances.
| 55 | // FunctionDecl defines a function name, overload set, and optionally a singleton definition for all |
| 56 | // overload instances. |
| 57 | type FunctionDecl struct { |
| 58 | name string |
| 59 | doc string |
| 60 | |
| 61 | // overloads associated with the function name. |
| 62 | overloads map[string]*OverloadDecl |
| 63 | |
| 64 | // singleton implementation of the function for all overloads. |
| 65 | // |
| 66 | // If this option is set, an error will occur if any overloads specify a per-overload implementation |
| 67 | // or if another function with the same name attempts to redefine the singleton. |
| 68 | singleton *functions.Overload |
| 69 | |
| 70 | // disableTypeGuards is a performance optimization to disable detailed runtime type checks which could |
| 71 | // add overhead on common operations. Setting this option true leaves error checks and argument checks |
| 72 | // intact. |
| 73 | disableTypeGuards bool |
| 74 | |
| 75 | // state indicates that the binding should be provided as a declaration, as a runtime binding, or both. |
| 76 | state declarationState |
| 77 | |
| 78 | // overloadOrdinals indicates the order in which the overload was declared. |
| 79 | overloadOrdinals []string |
| 80 | } |
| 81 | |
| 82 | type declarationState int |
| 83 |
nothing calls this directly
no outgoing calls
no test coverage detected