[ 
https://issues.apache.org/jira/browse/GROOVY-4502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-4502:
--------------------------------
    Fix Version/s:     (was: 4.x)

> Move Closure Class generation logic into a much earlier phase
> -------------------------------------------------------------
>
>                 Key: GROOVY-4502
>                 URL: https://issues.apache.org/jira/browse/GROOVY-4502
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Compiler
>            Reporter: Jochen Theodorou
>            Priority: Major
>
> ClosureExpression should get a new field storing the class that will be used 
> for this expression, and also provide a static method for the class name 
> generation. the field should be set in APP already and the ClassNode added as 
> primary ClassNode to the compile unit. Possible problem here, 
> VariableScopeVisitor and maybe the StaticImoprtVisitor should skip the class 
> and instead still work on the expression contents. Here is potential for 
> breaking existing user code. The static method can be used by people adding 
> closures themselfes and wanting to keep the naming scheme. Since that usually 
> works using an count, a possible other place is in ClassNode as instance 
> method



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to