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

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

Concrete fields

Extensions

Extensions

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