Package org.ek9lang.compiler.symbols
Interface ICanCaptureVariables
- All Known Implementing Classes:
AggregateSymbol
,AggregateWithTraitsSymbol
,CaptureScopedSymbol
,FunctionSymbol
,PossibleGenericSymbol
,StackConsistencyScope
public interface ICanCaptureVariables
Interface for dynamic functions and classes so that dynamic variables can be captured.
-
Method Summary
Modifier and TypeMethodDescriptionMake the scope that holds the captured variables (if any accessible).Try and resolve a symbol but exclude looking in captured variables.void
setCapturedVariables
(CaptureScope capturedVariables) So that a number of variables can be captured when a new dynamic type is defined.
-
Method Details
-
getCapturedVariables
Optional<CaptureScope> getCapturedVariables()Make the scope that holds the captured variables (if any accessible).- Returns:
- The scope holding the captured variables.
-
setCapturedVariables
So that a number of variables can be captured when a new dynamic type is defined.- Parameters:
capturedVariables
- The variables to capture.
-
resolveExcludingCapturedVariables
Try and resolve a symbol but exclude looking in captured variables.
-