Class SuitablePropertyInitialisationOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.SuitablePropertyInitialisationOrError
- All Implemented Interfaces:
Consumer<org.antlr.v4.runtime.tree.ParseTree>
class SuitablePropertyInitialisationOrError
extends TypedSymbolAccess
implements Consumer<org.antlr.v4.runtime.tree.ParseTree>
Used with aggregates to check that if they have any properties that are not initialised at declaration
the developer has taken appropriate steps to ensure initialisation.
Two checks are made:
- E07170: No developer constructors at all — the developer must write one to initialise properties.
- E07175: Developer constructors exist but the default constructor is still public — allowing uninitialised construction. The default constructor must be made private.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionSuitablePropertyInitialisationOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
SuitablePropertyInitialisationOrError
SuitablePropertyInitialisationOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
-