Class DuplicatePackageBlockOrError
java.lang.Object
org.ek9lang.compiler.phase1.DuplicatePackageBlockOrError
- All Implemented Interfaces:
BiPredicate<ModuleScope, EK9Parser.PackageBlockContext>
final class DuplicatePackageBlockOrError
extends Object
implements BiPredicate<ModuleScope, EK9Parser.PackageBlockContext>
Detects when a second 'defines package' block appears in a module
and emits a dedicated error rather than a generic duplicate symbol message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(ModuleScope moduleScope, EK9Parser.PackageBlockContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
DuplicatePackageBlockOrError
DuplicatePackageBlockOrError(ErrorListener errorListener)
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ModuleScope, EK9Parser.PackageBlockContext>
-