@Incubating
@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class ParallelASTTransformation
extends Object
implements ASTTransformation
Local AST transform for Parallel: rewrites annotated
for-in loops into collection.eachParallel { item -> body }.
The transform renames references to the loop variable in the body to a
synthetic name (e.g. $parallel_item) to avoid scope conflicts
with the for loop's own variable declaration, then re-resolves variable
scopes to ensure the closure captures enclosing variables correctly.