Package org.ek9lang.compiler.phase5
Class IdentifierAsPropertyOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.IdentifierAsPropertyOrError
- All Implemented Interfaces:
Consumer<EK9Parser.IdentifierContext>
public class IdentifierAsPropertyOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.IdentifierContext>
Given an identifier, this consumer checks if it is a property of some aggregate.
If so it then process the safe access methods to check that a property when not initialised
during declaration can be safely accessed within a method body.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ModifierConstructorDescriptionprotected
IdentifierAsPropertyOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
IdentifierAsPropertyOrError
protected IdentifierAsPropertyOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.IdentifierContext>
-