Separate

dotty.tools.dotc.cc.CCState.Separate
object Separate extends Separating

Attributes

Graph
Supertypes
class Separating
class Closed
class VarState
class Object
trait Matchable
class Any
Show all
Self type
Separate.type

Members list

Value members

Inherited methods

override def addHidden(hidden: HiddenSet, elem: CaptureRef)(using Context): Boolean

Add element to hidden set, recording it in elemsMap, return whether this was allowed. By default, recording is allowed but the special state VarState.Separate overrides this.

Add element to hidden set, recording it in elemsMap, return whether this was allowed. By default, recording is allowed but the special state VarState.Separate overrides this.

Attributes

Definition Classes
Inherited from:
Separating
def deps(v: Var): Deps

The recorded dependent sets of v (it's required that a recording was made)

The recorded dependent sets of v (it's required that a recording was made)

Attributes

Inherited from:
VarState
def elems(v: Var): Refs

The recorded elements of v (it's required that a recording was made)

The recorded elements of v (it's required that a recording was made)

Attributes

Inherited from:
VarState
def getDeps(v: Var): Option[Deps]

Optionally the recorded dependent sets of v, None if nothing was recorded for v

Optionally the recorded dependent sets of v, None if nothing was recorded for v

Attributes

Inherited from:
VarState
def getElems(v: Var): Option[Refs]

Optionally the recorded elements of v, None if nothing was recorded for v

Optionally the recorded elements of v, None if nothing was recorded for v

Attributes

Inherited from:
VarState
def ifNotSeen(ref: CaptureRef)(pred: => Boolean): Boolean

Run test pred unless ref was seen in an enclosing ifNotSeen operation

Run test pred unless ref was seen in an enclosing ifNotSeen operation

Attributes

Inherited from:
VarState
override def isOpen: Boolean

Does this state allow additions of elements to capture set variables?

Does this state allow additions of elements to capture set variables?

Attributes

Definition Classes
Inherited from:
Closed
override def isSeparating: Boolean

Attributes

Definition Classes
Inherited from:
Separating
override def putDeps(v: Var, deps: Deps): Boolean

Record dependent sets, return whether this was allowed. By default, recording is allowed in regular but not in frozen states.

Record dependent sets, return whether this was allowed. By default, recording is allowed in regular but not in frozen states.

Attributes

Definition Classes
Inherited from:
Closed
override def putElems(v: Var, refs: Refs): Boolean

Record elements, return whether this was allowed. By default, recording is allowed in regular but not in frozen states.

Record elements, return whether this was allowed. By default, recording is allowed in regular but not in frozen states.

Attributes

Definition Classes
Inherited from:
Closed
def rollBack(): Unit

Roll back global state to what was recorded in this VarState

Roll back global state to what was recorded in this VarState

Attributes

Inherited from:
VarState
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Separating -> Closed -> VarState -> Any
Inherited from:
Separating
def unify(root1: Result, root2: Result)(using Context): Boolean

If root1 and root2 belong to the same binder but have different originalBinders it means that one of the roots was mapped to the binder of the other by a substBinder when comparing two method types. In that case we can unify the two roots1, provided none of the two roots have already been unified themselves. So unification must be 1-1.

If root1 and root2 belong to the same binder but have different originalBinders it means that one of the roots was mapped to the binder of the other by a substBinder when comparing two method types. In that case we can unify the two roots1, provided none of the two roots have already been unified themselves. So unification must be 1-1.

Attributes

Inherited from:
VarState