()
| 1084 | } |
| 1085 | |
| 1086 | func (f *modFunction) OptionalArgs() []*modFunctionArg { |
| 1087 | args := make([]*modFunctionArg, 0, len(f.Args)) |
| 1088 | for _, arg := range f.Args { |
| 1089 | if !arg.IsRequired() { |
| 1090 | args = append(args, arg) |
| 1091 | } |
| 1092 | } |
| 1093 | return args |
| 1094 | } |
| 1095 | |
| 1096 | func (f *modFunction) SupportedArgs() []*modFunctionArg { |
| 1097 | args := make([]*modFunctionArg, 0, len(f.Args)) |
no test coverage detected