ConstFold

dotty.tools.dotc.typer.ConstFold
object ConstFold

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ConstFold.type

Members list

Value members

Concrete methods

def Apply[T <: Apply](tree: T)(using Context): T
def Select[T <: Select](tree: T)(using Context): T
def apply[T <: Tree](tree: T)(using Context): T

If tree is a constant operation, replace with result.

If tree is a constant operation, replace with result.

Attributes

Concrete fields