-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
The recent bug (fixed) exposed a shortcoming in the manner in which we deal with supplying function parameters at their callsite (during code generation) depending on whether said parameters were provided in declaration order or as named parameters. If former, the arguments should be supplied using the arguments() function, whereas if named parameters are supported for that particular type of function call, then sortedArguments() must be used in order to make sure that the passed parameters (call site) are supplied in the correct order (declaration site).
One way to do this would be to make additional use of the FuncCallArgument struct as suggested by @cameel; other approaches can also be investigated for merit.
Ultimately, we should end up with a unique 'interface' that will always supply the parameters in correct order.