aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/tools/dotc/printing/Printers.scala
blob: ba1cf83bbf8b58db8ec114dba33792c76e3b3c10 (plain) (tree)
1
2
3
4
5
6
7
8
9
                        
                
 
                            
 

                                 

                                                                  
 

                                      
 

 
package dotty.tools.dotc
package printing

import core.Contexts.Context

trait Printers { this: Context =>

  /** A creation method for printers, depending on debug option */
  def printerFn = if (this.debug) plainPrinter else refinedPrinter

  /** A function creatung a printer */
  def printer = printerFn(this)

}