Class ChainedViewUses
java.lang.Object
org.ek9lang.compiler.support.sharing.ChainedViewUses
- All Implemented Interfaces:
BiFunction<EK9Parser.ObjectAccessStartContext, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol>, List<ObjectSharing.Use>>
final class ChainedViewUses
extends Object
implements BiFunction<EK9Parser.ObjectAccessStartContext, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol>, List<ObjectSharing.Use>>
The call chain that starts at a variable or
this: a link that may return a VIEW of what it was called on
makes the result the same object as (part of) the receiver. A later link that may change it changes the receiver
(ObjectSharing.Kind.HANDED_TO_CALL); a result that is then kept is kept as the receiver
(RetainedBy).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(EK9Parser.ObjectAccessStartContext start, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
ChainedViewUses
ChainedViewUses()
-
-
Method Details
-
apply
public List<ObjectSharing.Use> apply(EK9Parser.ObjectAccessStartContext start, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) - Specified by:
applyin interfaceBiFunction<EK9Parser.ObjectAccessStartContext, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol>, List<ObjectSharing.Use>>
-