Class IsCapturedVariable
java.lang.Object
org.ek9lang.compiler.support.IsCapturedVariable
- All Implemented Interfaces:
BiPredicate<ISymbol, ICanCaptureVariables>
public final class IsCapturedVariable
extends Object
implements BiPredicate<ISymbol, ICanCaptureVariables>
THE "is this symbol one of the variables a dynamic function or class captured?" - by IDENTITY against
CapturedVariables, never by name: a name join would take an unrelated variable of the same name (an outer
local, a property) for the capture; the E08251 check once did.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(ISymbol candidate, ICanCaptureVariables capturer) True whencandidateis, by identity, one of the variablescapturercaptured.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
IsCapturedVariable
public IsCapturedVariable()
-
-
Method Details
-
test
True whencandidateis, by identity, one of the variablescapturercaptured.- Specified by:
testin interfaceBiPredicate<ISymbol, ICanCaptureVariables>
-