Class AssignmentStatementOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.AssignmentStatementOrError
- All Implemented Interfaces:
Consumer<EK9Parser.AssignmentStatementContext>
final class AssignmentStatementOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.AssignmentStatementContext>
Check the assignment to a variable can be a single assignment or a deep copy type assignment.
The initialised status of the variable may be modified and will be checked as appropriate.
-
Field Summary
Fields inherited from class RuleSupport
errorListener, symbolsAndScopes -
Constructor Summary
ConstructorsConstructorDescriptionAssignmentStatementOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidCan be other things besides identifier, only really focussed on locals and return variables for this.voidThe assignment statement has been evaluated: a simple assignment has now initialised its variable.Methods inherited from class TypedSymbolAccess
emitTypeNotResolvedError, getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
AssignmentStatementOrError
AssignmentStatementOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
Can be other things besides identifier, only really focussed on locals and return variables for this. primaryReference | identifier | objectAccessExpression- Specified by:
acceptin interfaceConsumer<EK9Parser.AssignmentStatementContext>
-
assignmentCompleted
The assignment statement has been evaluated: a simple assignment has now initialised its variable.
-