Groovy - AST Transformations, a practical example

abstract-syntax-tree, groovy

Solution

This page has practical examples of how to use: @Singleton, @Lazy, @Immutable, @Delegate, @Newify, @Category, @Mixin, @PackageScope

Problem

AST Transformations are implemented in Groovy. What's a practical example of using an AST Transformation?

Original source