Package org.ek9lang.compiler.phase3
Class DynamicCaptureAndDefinition
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.DynamicCaptureAndDefinition
- All Implemented Interfaces:
Consumer<EK9Parser.DynamicVariableCaptureContext>
final class DynamicCaptureAndDefinition
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
ConstructorsConstructorDescriptionDynamicCaptureAndDefinition
(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
-
DynamicCaptureAndDefinition
DynamicCaptureAndDefinition(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>
-