(ctx context.Context)
| 612 | } |
| 613 | |
| 614 | func (fn *ModuleFunction) UserDefaults(ctx context.Context) (*EnvFile, error) { |
| 615 | objDefaults, err := fn.mod.Self().ObjectUserDefaults(ctx, fn.objDef.OriginalName) |
| 616 | if err != nil { |
| 617 | return nil, err |
| 618 | } |
| 619 | isConstructor := (fn.metadata.Name == "") |
| 620 | if isConstructor { |
| 621 | return objDefaults, nil |
| 622 | } |
| 623 | return objDefaults.Namespace(ctx, fn.metadata.OriginalName) |
| 624 | } |
| 625 | |
| 626 | //nolint:gocyclo // intrinsically long state machine; refactoring would hurt clarity |
| 627 | func (fn *ModuleFunction) DynamicInputsForCall( |
no test coverage detected