paulk-asert opened a new pull request, #2691:
URL: https://github.com/apache/groovy/pull/2691

   …ompiled view
   
   Stamp each ClosureExpression, at closure-class creation, with the name of 
the synthetic class it compiles to (a new GENERATED_CLOSURE_CLASS node- 
metadata key on ClosureWriter), and have the console's AstNodeToScriptVisitor 
render that name as a trailing block comment on the closure/lambda literal.
   
   Previously the decompiled source showed the closure literal but never the 
`new <ClosureClass>(...)` construction the writer emits, so a closure's 
generated class was visible only in bytecode. The mark rides the existing 
class-creation path (one putNodeMetaData per closure, alongside the 
WriterControllerFactory one already there) and is only populated after the 
class-generation phase, so it is free for normal compilation and simply absent 
at earlier phases. The compiler itself never reads it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to