aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/Printers.scala
blob: 36043a4ff7e2c21e8572d9e4bf7301b12854945c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package dotty.tools.dotc
package printing

import core.Contexts.Context

trait Printers { this: Context =>

  /** A function creating a printer */
  def printer = {
    val pr = printerFn(this)
    if (this.settings.YplainPrinter.value) pr.plain else pr
  }
}