Skip to content

Commit 3879953

Browse files
committed
tweak wording
1 parent bedde41 commit 3879953

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/spec/doc/core-metaprogramming.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -3023,14 +3023,14 @@ thoroughly in this <<{grape}#section-grape,section of the guide>>.
30233023
30243024
There are two kinds of transformations: global and local transformations.
30253025
3026-
* <<transforms-global,Global transformations>> are applied to by the compiler on the code being compiled,
3027-
wherever the transformation apply. Compiled classes that implement global transformations
3026+
* <<transforms-global,Global transformations>> are applied by the compiler on the code being compiled,
3027+
wherever the transformation applies. Compiled classes that implement global transformations
30283028
are in a JAR added to the classpath of the compiler and contain service locator file
30293029
`META-INF/services/org.codehaus.groovy.transform.ASTTransformation` with a line with the name of the
30303030
transformation class. The transformation class must have a no-arg constructor and implement the
30313031
`org.codehaus.groovy.transform.ASTTransformation` interface.
3032-
It will be run against *every source in the compilation*, so be sure to not create transformations which
3033-
scan all the AST in an expansive and time-consuming manner, to keep the compiler fast.
3032+
It will be run against *every source in the compilation*, so if you want fast compilation times, don't create transformations which
3033+
scan all the AST in an expansive and time-consuming manner.
30343034
* <<transforms-local,Local transformations>> are transformations applied locally by annotating code elements you want to
30353035
transform. For this, we reuse the annotation notation, and those annotations should implement
30363036
`org.codehaus.groovy.transform.ASTTransformation`. The compiler will discover them and apply the

0 commit comments

Comments
 (0)