c

scala.tools.nsc.typechecker

ConstantFolder

abstract class ConstantFolder extends AnyRef

This class ...

Source
ConstantFolder.scala
Version

1.0

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstantFolder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConstantFolder()

Abstract Value Members

  1. abstract val global: Global

Concrete Value Members

  1. def apply(tree: Global.Tree, pt: Global.Type): Global.Tree

    If tree is a constant value that can be converted to type pt, perform the conversion.

  2. def apply(tree: Global.Tree): Global.Tree

    If tree is a constant operation, replace with result.