Class ReferencesOrderOrError
java.lang.Object
org.ek9lang.compiler.phase1.ReferencesOrderOrError
- All Implemented Interfaces:
Consumer<EK9Parser.ReferencesBlockContext>
final class ReferencesOrderOrError
extends Object
implements Consumer<EK9Parser.ReferencesBlockContext>
Checks that references within a references block are in alphabetical order.
EK9 requires references to be sorted alphabetically for consistency:
- Faster scanning - developers can quickly find or verify a reference
- Reduced merge conflicts - alphabetical order minimizes VCS conflicts
- AI-friendly - consistent patterns help AI tools understand and generate code
The comparison is case-insensitive and uses the full qualified name.
-
Constructor Details
-
ReferencesOrderOrError
ReferencesOrderOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<EK9Parser.ReferencesBlockContext>
-