Package org.ek9lang.compiler.phase3
Class VariableAssignmentOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.VariableAssignmentOrError
- All Implemented Interfaces:
Consumer<EK9Parser.VariableDeclarationContext>
final class VariableAssignmentOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.VariableDeclarationContext>
Checks on the assignment during a declaration and emits an error if not valid.
identifier AS? typeDef QUESTION? (ASSIGN | ASSIGN2 | COLON | MERGE | ASSIGN_UNSET) assignmentExpression identifier LEFT_ARROW assignmentExpression
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionVariableAssignmentOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new checker of variable assignments when variables are being declared. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
VariableAssignmentOrError
VariableAssignmentOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Create a new checker of variable assignments when variables are being declared.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.VariableDeclarationContext>
-