Class ReturnAdderForClosures

java.lang.Object
org.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.transform.tailrec.ReturnAdderForClosures
All Implemented Interfaces:
GroovyCodeVisitor

public class ReturnAdderForClosures extends CodeVisitorSupport
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.