Package org.ek9lang.compiler.phase3
Class DynamicCaptureOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.DynamicCaptureOrError
- All Implemented Interfaces:
Consumer<EK9Parser.DynamicVariableCaptureContext>
final class DynamicCaptureOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.DynamicVariableCaptureContext>
Resolves the variables to be captured and defines new variable symbols against the appropriate scopes.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionDynamicCaptureOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, SymbolFactory symbolFactory) Define new variables in the capture scope as they are resolved. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
DynamicCaptureOrError
DynamicCaptureOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, SymbolFactory symbolFactory) Define new variables in the capture scope as they are resolved.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.DynamicVariableCaptureContext>
-