Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: class generator
-
Labels:None
Description
support named parameter arguments such as
foo(a:1234, b:542)
Uses NamedArgumentListExpression which is-a MapExpression.
Right now we implement the above to match a method
foo(Map map)
foo(Object object)
though we should also allow it to invoke any Java method (or at least any groovy method). Though we need metadata of the names of the parameters to be able to do this.
Issue Links
- is depended upon by
-
GROOVY-762
implement syntax improvements
-
Punting the rest of this bug to the backend. Still may have to change front-end to use a Tuple of MapEntryExpressions and Expressions, instead of a MapExpression/NamedArgumentListExpression.