[Groovy] Class ReturnAdderForClosures
- org.codehaus.groovy.transform.tailrec.ReturnAdderForClosures
Adds explicit return statements to implicit return points in a closure. This is necessary since tail-recursion is detected by having the recursive call within the return statement.
- Authors:
- Johannes Link
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
void |
visitClosureExpression(ClosureExpression expression) | |
void |
visitMethod(MethodNode method) |
Inherited Methods Summary
Method Detail
void visitClosureExpression(ClosureExpression expression)
void visitMethod(MethodNode method)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/transform/tailrec/ReturnAdderForClosures.html