Class PackagePropertyOrError
java.lang.Object
org.ek9lang.compiler.phase1.PackagePropertyOrError
- All Implemented Interfaces:
BiConsumer<String, EK9Parser.PackageBlockContext>
final class PackagePropertyOrError
extends Object
implements BiConsumer<String, EK9Parser.PackageBlockContext>
Reports what is wrong with a 'defines package' block, using the same rule (
PackageProperties) and message
as the CLI's package pre-pass - which only the CLI runs, so without this the LSP and MCP tools accepted
name <- "myLib" and tags <- "x", and a package with no description or version:
- a property a package does not define, or a value not of the shape it requires (E06260);
- a property set twice (E50050, in the package's own words - reported before the property is defined, so the generic duplicate-variable error on the same line is not the one kept);
- no 'version' (E06262) or no 'description' (E06261) - D16, Steve 2026-10-19.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(String moduleName, EK9Parser.PackageBlockContext ctx) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Constructor Details
-
PackagePropertyOrError
PackagePropertyOrError(ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<String, EK9Parser.PackageBlockContext>
-