Constructor represents a constructor function along with its arguments.
| 25 | |
| 26 | // Constructor represents a constructor function along with its arguments. |
| 27 | type Constructor struct { |
| 28 | fnType reflect.Type // The type of the constructor function. |
| 29 | fnValue reflect.Value // The value of the constructor function. |
| 30 | args []Arg // The arguments of the constructor function. |
| 31 | } |
| 32 | |
| 33 | // createConstructor validates the given ConstructorFunc and builds a Constructor metadata struct. |
| 34 | // It ensures that the function is non-nil, is of kind Func, and returns exactly one result. |
nothing calls this directly
no outgoing calls
no test coverage detected