Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
CompilationUnit runs ResolveVisitor explicitly but the resolver is also registered as a regular PhaseOperation.
It's not that big deal, as classes resolved in the 1st pass are relatively quickly determined as resolved. But still the whole AST source must be traversed.
The ISourceUnitOperation's guard (check source.phase against unit.phase) does not work here, as the explicit resolver cannot upgrade the source's phase (not all operations completed).
Attachments
Issue Links
- relates to
-
GROOVY-8729 Eliminate the additional resolving phase of compilation for better performance
- Closed
-
GROOVY-10300 Rework runtime script member resolution
- Closed