CCState

dotty.tools.dotc.cc.CCState
See theCCState companion class
object CCState

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CCState.type

Members list

Type members

Types

opaque type Level

Value members

Concrete methods

def capIsRoot(using Context): Boolean

Is caps.cap a root capability that is allowed to subsume other capabilities?

Is caps.cap a root capability that is allowed to subsume other capabilities?

Attributes

Should all FreshCap instances be treated as equal to GlobalCap?

Should all FreshCap instances be treated as equal to GlobalCap?

Attributes

inline def inNewExistentialScope[T](mt: MethodType)(op: => T)(using Context): T

If we are currently in capture checking or setup, and mt is a method type that is not a prefix of a curried method, perform op assuming a fresh enclosing existential scope mt, otherwise perform op directly.

If we are currently in capture checking or setup, and mt is a method type that is not a prefix of a curried method, perform op assuming a fresh enclosing existential scope mt, otherwise perform op directly.

Attributes

The currently opened existential scopes

The currently opened existential scopes

Attributes

inline def withCapAsRoot[T](op: => T)(using Context): T

Run op under the assumption that cap can subsume all other capabilties except Result capabilities. Every use of this method should be scrutinized for whether it introduces an unsoundness hole.

Run op under the assumption that cap can subsume all other capabilties except Result capabilities. Every use of this method should be scrutinized for whether it introduces an unsoundness hole.

Attributes

inline def withCollapsedFresh[T](op: => T)(using Context): T

Run op under the assumption that all FreshCap instances are equal to each other and to GlobalCap. Needed to make override checking of types containing fresh work. Asserted in override checking, tested in maxSubsumes. Is this sound? Test case is neg-custom-args/captures/leaked-curried.scala.

Run op under the assumption that all FreshCap instances are equal to each other and to GlobalCap. Needed to make override checking of types containing fresh work. Asserted in override checking, tested in maxSubsumes. Is this sound? Test case is neg-custom-args/captures/leaked-curried.scala.

Attributes

Concrete fields

Extensions

Extensions

extension (x: Level)
def <=(y: Level): Boolean