WithLazyField

dotty.tools.dotc.ast.Trees$.WithLazyField
trait WithLazyField[+T <: AnyRef]

A tree that can have a lazy field The field is represented by some private var which is accessed by unforced and force. Forcing the field will set the var to the underlying value.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Template[T]
class ValOrDefDef[T]
class DefDef[T]
class ValDef[T]
class EmptyValDef[T]

Members list

Concise view

Value members

Abstract methods

protected def force(x: T): Unit
def unforced: T | Lazy[T]

Concrete methods

def forceIfLazy(using Context): T