paulk-asert commented on code in PR #2500:
URL: https://github.com/apache/groovy/pull/2500#discussion_r3166233576
##########
src/main/java/org/codehaus/groovy/transform/ASTTransformationVisitor.java:
##########
@@ -93,6 +93,22 @@ private ASTTransformationVisitor(final CompilePhase phase,
final ASTTransformati
this.context = context;
}
+ /**
+ * Returns a primary class node operation that invokes any AST
transformations
+ * registered for {@code phase} on each class. Intended for callers that
need
+ * to drive transform invocation outside the standard phase wiring (for
example,
+ * {@code JavaAwareCompilationUnit} runs CONVERSION-phase transforms
before the
+ * stub generator emits stubs — see GEP-21).
+ */
+ public static
org.codehaus.groovy.control.CompilationUnit.IPrimaryClassNodeOperation
+ invocationOperation(final CompilePhase phase, final
ASTTransformationsContext context) {
Review Comment:
I have changed this - please check if the new approach seems okay to you. I
renamed the branch and it looks like GitHub doesn't let you keep that in the
same PR. So please check the other PR.
--
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]