WithLazyFields

dotty.tools.dotc.ast.Trees$.WithLazyFields

A tree that can have a lazy fields. Such fields are variables of type T | Lazy[T], for some tyope T.

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]
Show all

Members list

Value members

Abstract methods

def forceFields()(using Context): Unit

Assigns all lazy fields their underlying non-lazy value.

Assigns all lazy fields their underlying non-lazy value.

Attributes

Concrete methods

protected def force[T <: AnyRef](x: T | Lazy[T])(using Context): T

If x is lazy, computes the underlying value

If x is lazy, computes the underlying value

Attributes