Uses of Record Class
org.ek9lang.compiler.support.sharing.ObjectSharing.Use
Packages that use ObjectSharing.Use
Package
Description
I - PRE Intermediate Representation generation checks.
-
Uses of ObjectSharing.Use in org.ek9lang.compiler.phase5
Methods in org.ek9lang.compiler.phase5 that return types with arguments of type ObjectSharing.UseModifier and TypeMethodDescription(package private) List<ObjectSharing.Use> ProvenContainerChange.usesOf(EK9Parser.IdentifierContext occurrence, ISymbol symbol) What one occurrence ofsymboldoes to the object it names (ObjectSharing); for a container itself, without what is done to its views -show(name.get())hands on the ITEM, which cannot empty the Optional (ObjectSharing.ofTheObjectItself(EK9Parser.IdentifierContext, Function)).(package private) List<ObjectSharing.Use> ProvenContainerChange.usesOf(EK9Parser.IdentifierContext occurrence, ISymbol symbol, List<ObjectSharing.Use> allUses) AsProvenContainerChange.usesOf(EK9Parser.IdentifierContext, ISymbol), when every use of the occurrence (allUses,ObjectSharing.apply(EK9Parser.IdentifierContext, Function)) is already known: those, or for a container only the uses of the object itself.Methods in org.ek9lang.compiler.phase5 with parameters of type ObjectSharing.UseModifier and TypeMethodDescription(package private) Optional<ProgramCodeSites.Site> ProgramCodeSites.ofInPlaceWrite(EK9Parser.IdentifierContext occurrence, ISymbol symbol, ObjectSharing.Use use) The in-place write one use of an identifier's occurrence makes, when that use is an in-place write by an operator of the program's own (counter += 1withCounter's own+=).Method parameters in org.ek9lang.compiler.phase5 with type arguments of type ObjectSharing.UseModifier and TypeMethodDescription(package private) booleanProvenContainerChange.byOccurrence(ISymbol occurrenceSymbol, List<ObjectSharing.Use> uses, ISymbol container, boolean sharingCounts) May this occurrence ofoccurrenceSymbol- with the effectsuses(ObjectSharing) - change the objectcontainerrefers to? A mutating operator, a call that may change it or a holder nothing names keeping it does, through any name that may be the same object.(package private) voidSafeAccessWithdrawal.occurrence(ISymbol occurrenceSymbol, List<ObjectSharing.Use> uses, boolean assignmentTarget) One occurrence of a variable, with what it does to the object (ProvenContainerChange.usesOf(EK9Parser.IdentifierContext, ISymbol)): withdraw every proof that may break.(package private) List<ObjectSharing.Use> ProvenContainerChange.usesOf(EK9Parser.IdentifierContext occurrence, ISymbol symbol, List<ObjectSharing.Use> allUses) AsProvenContainerChange.usesOf(EK9Parser.IdentifierContext, ISymbol), when every use of the occurrence (allUses,ObjectSharing.apply(EK9Parser.IdentifierContext, Function)) is already known: those, or for a container only the uses of the object itself. -
Uses of ObjectSharing.Use in org.ek9lang.compiler.support.sharing
Classes in org.ek9lang.compiler.support.sharing that implement interfaces with type arguments of type ObjectSharing.UseModifier and TypeClassDescription(package private) final classThe call chain that starts at a variable orthis: a link that may return a VIEW of what it was called on makes the result the same object as (part of) the receiver.final classTHE reading of what one occurrence of a name does to the OBJECT the name refers to - for every analysis that remembers what a variable holds (the phase-5 value tracker behind E08086,CompileTimeKnownTextbehind E08275).final classWhatthisorsuper- the object a method runs on, whose name is no identifier - does to that object, read exactly as the occurrence of a variable is (ObjectSharing): kept where the whole expression is kept (items += this,box <- Box(this),(this) is ...), or the start of a call chain that may return a view of it (this.me()).(package private) final classWhatoccurrence- an identifier the compiler bound to a symbol - does to the object it names; empty when it only reads it, or stores a new object in it.(package private) final classTHE retention walk ofObjectSharing(D61): the object an expression evaluates to (or contains) - what keeps it? The variable it is stored in, a container it is added to or put in a literal of, a call or constructor that may keep its argument, aforloop's variable, a stream's holders, or the returning variable of a construct whose value is assigned -ObjectSharing.Kind.SHAREDwith a nameable holder, elseObjectSharing.Kind.ESCAPES.Methods in org.ek9lang.compiler.support.sharing that return types with arguments of type ObjectSharing.UseModifier and TypeMethodDescriptionChainedViewUses.apply(EK9Parser.ObjectAccessStartContext start, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) ObjectSharing.apply(EK9Parser.IdentifierContext occurrence, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) EVERY effect of one occurrence: what the occurrence itself does (OccurrenceUse), plus what it RETAINS (D61) - the object put in a collection literal, a Dict value, given to a call or constructor that keeps its argument, added with a compound assignment, or iterated by afor: whatever holds it afterwards shares the object, so an in-place change through the holder (a loop variable, an element, a field) changes it too.ObjectSharingOfSelf.apply(EK9Parser.PrimaryReferenceContext self, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) OccurrenceUse.apply(EK9Parser.IdentifierContext occurrence, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) The effect of one occurrence.RetainedBy.apply(EK9Parser.ExpressionContext expression, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) The objectexpressionevaluates to (or contains) - what keeps it?ObjectSharing.ofTheObjectItself(EK9Parser.IdentifierContext occurrence, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recorded) AsObjectSharing.apply(EK9Parser.IdentifierContext, Function), without what a call chain on the name does to a VIEW of the object (name.get()handed on is the Optional's ITEM, not the Optional): what the occurrence does to exactly the object the name refers to.