Class NoDuplicatedTraitsOrError
java.lang.Object
org.ek9lang.compiler.phase2.NoDuplicatedTraitsOrError
- All Implemented Interfaces:
Consumer<AggregateWithTraitsSymbol>
Checks for duplicated trait names on an aggregate (E02050). Every trait listed more than once is named in ONE error
(D14, Steve 2026-10-19): the error is keyed by line, so a second error on the declaration's line was dropped and
only the first duplicated name was ever reported.
-
Constructor Details
-
NoDuplicatedTraitsOrError
NoDuplicatedTraitsOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<AggregateWithTraitsSymbol>
-