dotty.tools.dotc.transform.TreeTransforms

TreeTransformer

Related Doc: package TreeTransforms

abstract class TreeTransformer extends DotClass with Phase

A group of tree transforms that are applied in sequence during the same phase

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TreeTransformer
  2. Phase
  3. DotClass
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeTransformer()

Abstract Value Members

  1. abstract def miniPhases: Array[MiniPhase]

  2. abstract def phaseName: String

    Definition Classes
    Phase

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def <=(that: Phase): Boolean

    Definition Classes
    Phase
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def checkPostCondition(tree: ast.tpd.Tree)(implicit ctx: Context): Unit

    Check what the phase achieves, to be called at any point after it is finished.

    Check what the phase achieves, to be called at any point after it is finished.

    Definition Classes
    Phase
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def description: String

    Definition Classes
    Phase
  9. def end: PhaseId

    Definition Classes
    Phase
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. final def erasedTypes: Boolean

    Definition Classes
    Phase
  13. def exists: Boolean

    Definition Classes
    Phase
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def flatClasses: Boolean

    Definition Classes
    Phase
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. final def hasNext: Boolean

    Definition Classes
    Phase
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def id: Int

    The sequence position of this phase in the given context where 0 is reserved for NoPhase and the first real phase is at position 1.

    The sequence position of this phase in the given context where 0 is reserved for NoPhase and the first real phase is at position 1. -1 if the phase is not installed in the context.

    Definition Classes
    Phase
  20. def init(base: ContextBase, id: Int): Unit

    Attributes
    protected[dotty.tools.dotc.core.Phases]
    Definition Classes
    Phase
  21. def init(base: ContextBase, start: Int, end: Int): Unit

    Attributes
    protected[dotty.tools.dotc.core.Phases]
    Definition Classes
    Phase
  22. val initialInfoCache: TransformerInfo

  23. val initialTransformationsCache: Array[TreeTransform]

  24. def isCheckable: Boolean

    Output should be checkable by TreeChecker

    Output should be checkable by TreeChecker

    Definition Classes
    Phase
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def isTyper: Boolean

    Is this phase the standard typerphase? True for FrontEnd, but not for other first phases (such as FromTasty).

    Is this phase the standard typerphase? True for FrontEnd, but not for other first phases (such as FromTasty). The predicate is tested in some places that perform checks and corrections. It's different from isAfterTyper (and cheaper to test).

    Definition Classes
    Phase
  27. final def iterator: Iterator[Phase]

    Definition Classes
    Phase
  28. final def labelsReordered: Boolean

    Definition Classes
    Phase
  29. def localContext(sym: Symbol)(implicit ctx: Context): FreshContext

  30. def macroTransform(t: ast.tpd.Tree)(implicit ctx: Context): ast.tpd.Tree

  31. def mutateTransformers[T](info: TransformerInfo, mutator: Mutator[T], mutationPlan: Array[Int], tree: T, cur: Int)(implicit ctx: Context): TransformerInfo

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def next: Phase

    Definition Classes
    Phase
  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def period: Period

    Definition Classes
    Phase
  37. val prepForAlternative: Mutator[ast.tpd.Alternative]

  38. val prepForApply: Mutator[ast.tpd.Apply]

  39. val prepForAssign: Mutator[ast.tpd.Assign]

  40. val prepForBind: Mutator[ast.tpd.Bind]

  41. val prepForBlock: Mutator[ast.tpd.Block]

  42. val prepForCaseDef: Mutator[ast.tpd.CaseDef]

  43. val prepForClosure: Mutator[ast.tpd.Closure]

  44. val prepForDefDef: Mutator[ast.tpd.DefDef]

  45. val prepForIdent: Mutator[ast.tpd.Ident]

  46. val prepForIf: Mutator[ast.tpd.If]

  47. val prepForLiteral: Mutator[ast.tpd.Literal]

  48. val prepForMatch: Mutator[ast.tpd.Match]

  49. val prepForNew: Mutator[ast.tpd.New]

  50. val prepForPackageDef: Mutator[ast.tpd.PackageDef]

  51. val prepForPair: Mutator[ast.tpd.Pair]

  52. val prepForReturn: Mutator[ast.tpd.Return]

  53. val prepForSelect: Mutator[ast.tpd.Select]

  54. val prepForSelectFromTypeTree: Mutator[ast.tpd.SelectFromTypeTree]

  55. val prepForSeqLiteral: Mutator[ast.tpd.SeqLiteral]

  56. val prepForStats: Mutator[List[ast.tpd.Tree]]

  57. val prepForSuper: Mutator[ast.tpd.Super]

  58. val prepForTemplate: Mutator[ast.tpd.Template]

  59. val prepForThis: Mutator[ast.tpd.This]

  60. val prepForTry: Mutator[ast.tpd.Try]

  61. val prepForTypeApply: Mutator[ast.tpd.TypeApply]

  62. val prepForTypeDef: Mutator[ast.tpd.TypeDef]

  63. val prepForTypeTree: Mutator[ast.tpd.TypeTree]

  64. val prepForTyped: Mutator[ast.tpd.Typed]

  65. val prepForUnApply: Mutator[ast.tpd.UnApply]

  66. val prepForUnit: Mutator[ast.tpd.Tree]

  67. val prepForValDef: Mutator[ast.tpd.ValDef]

  68. final def prev: Phase

    Definition Classes
    Phase
  69. final def refChecked: Boolean

    Definition Classes
    Phase
  70. def relaxedTyping: Boolean

    If set, allow missing or superfluous arguments in applications and type applications.

    If set, allow missing or superfluous arguments in applications and type applications.

    Definition Classes
    Phase
  71. def run(implicit ctx: Context): Unit

    Definition Classes
    TreeTransformerPhase
  72. def runOn(units: List[CompilationUnit])(implicit ctx: Context): List[CompilationUnit]

    Definition Classes
    Phase
  73. def runsAfter: Set[Class[_ <: Phase]]

    List of names of phases that should precede this phase

    List of names of phases that should precede this phase

    Definition Classes
    Phase
  74. def start: Int

    Definition Classes
    Phase
  75. final def symbolicRefs: Boolean

    Definition Classes
    Phase
  76. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  77. def toString(): String

    Definition Classes
    Phase → AnyRef → Any
  78. def transform(tree: ast.tpd.Tree, info: TransformerInfo, cur: Int)(implicit ctx: Context): ast.tpd.Tree

  79. def transformStats(trees: List[ast.tpd.Tree], exprOwner: Symbol, info: TransformerInfo, current: Int)(implicit ctx: Context): List[ast.tpd.Tree]

  80. def transformSub[Tr <: ast.tpd.Tree](tree: Tr, info: TransformerInfo, current: Int)(implicit ctx: Context): Tr

  81. def transformSubTrees[Tr <: ast.tpd.Tree](trees: List[Tr], info: TransformerInfo, current: Int)(implicit ctx: Context): List[Tr]

  82. def transformTrees(trees: List[ast.tpd.Tree], info: TransformerInfo, current: Int)(implicit ctx: Context): List[ast.tpd.Tree]

  83. def unsupported(methodName: String): Nothing

    Throws an UnsupportedOperationException with the given method name.

    Throws an UnsupportedOperationException with the given method name.

    Definition Classes
    DotClass
  84. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  86. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Phase

Inherited from DotClass

Inherited from AnyRef

Inherited from Any

Ungrouped