aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/transform/DropInlined.scala
blob: 775663b5c261f13ac6443a97a3c19238d0e5ab60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package dotty.tools.dotc
package transform

import typer.Inliner
import core.Contexts.Context
import TreeTransforms.{MiniPhaseTransform, TransformerInfo}

/** Drop Inlined nodes */
class DropInlined extends MiniPhaseTransform {
  import ast.tpd._
  override def phaseName = "dropInlined"

  override def transformInlined(tree: Inlined)(implicit ctx: Context, info: TransformerInfo): Tree =
    Inliner.dropInlined(tree)
}