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.

class Object
trait Matchable
class Any
class Template[T]
class ValOrDefDef[T]
class DefDef[T]
class ValDef[T]
class EmptyValDef[T]

Value members

Abstract methods

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

Concrete methods

def forceIfLazy(using Context): T