Dotty Documentation

0.11.0-bin-SNAPSHOT

class RefinedPrinter
extends PlainPrinter

[-] Constructors

RefinedPrinter ( _ctx: Context )

[-] Members

[+] private val _ctx : Context
[+] private var enclosingDef : Tree

A stack of enclosing DefDef, TypeDef, or ClassDef, or ModuleDefs nodes

[+] private var myCtx : Context
[+] private val printLines : Boolean
[+] private var printPos : Boolean
[+] def Modifiers ( sym: Symbol ) ( implicit ctx: Context ) : Modifiers
[+] protected override def ParamRefNameString ( name: Name ) : String
[+] protected def PrintableFlags ( isType: Boolean ) : FlagSet
[+] def addVparamssText ( txt: Text , vparamss: List [ List [ ValDef [ T ] ] ] ) : Text
[+] protected def annotText ( tree: Tree ) : Text
[+] protected def blockText ( trees: List [ Tree [ T ] ] ) : Text
[+] protected def blockToText ( block: Block [ T ] ) : Text
[+] protected def constrText ( tree: Tree ) : Text
[+] protected override implicit def ctx : Context
[+] protected def dclTextOr ( tree: Tree [ T ] ) ( treeText: => Text ) : Text
[+] protected def defDefToText ( tree: DefDef [ T ] ) : Text
[+] protected def enclDefIsClass : Boolean
[+] protected def exprToText ( tp: ExprType ) : Text
[+] protected def filterModTextAnnots ( annots: List [ Tree ] ) : List [ Tree ]
[+] protected override def fullNameOwner ( sym: Symbol ) : Symbol
[+] override def fullNameString ( sym: Symbol ) : String

The fully qualified name of the symbol

[+] private def idText ( tree: Tree ) : Text
[+] def inPattern ( op: => Text ) : Text
[+] protected override def keyString ( sym: Symbol ) : String

String representation of symbol's definition keyword

[+] override def kindString ( sym: Symbol ) : String

String representation of symbol's kind.

[+] protected def modText ( mods: Modifiers , sym: Symbol , kw: String , isType: Boolean ) : Text
[+] implicit def modsDeco ( mdef: MemberDef ) ( implicit ctx: Context ) : ModsDecorator

Print modifiers from symbols if tree has type, overriding the untpd behavior.

[+] protected def nameIdText ( tree: NameTree [ T ] ) : Text
[+] override def nameString ( name: Name ) : String

The name, possibly with with namespace suffix if debugNames is set: /L for local names, /V for other term names, /T for type names

[+] protected def optAscription ( tpt: Tree [ T ] ) : Text
[+] def optText ( name: Name ) ( encl: Text => Text ) : Text
[+] def optText ( tree: Tree [ T ] ) ( encl: Text => Text ) : Text
[+] def optText ( tree: List [ Tree [ T ] ] ) ( encl: Text => Text ) : Text
[+] protected def packageDefText ( tree: PackageDef ) : Text
[+] override def plain : PlainPrinter

A plain printer without any embellishments

[+] protected override def recursionLimitExceeded ( ) : Unit
[+] protected override def refinementNameString ( tp: RefinedType ) : String

String representation of a name used in a refinement In refined printing this undoes type parameter expansion

[+] protected override def simpleNameString ( sym: Symbol ) : String

The name of the symbol without a unique id.

[+] protected def templateText ( tree: TypeDef , impl: Template ) : Text
[+] override def toText ( tp: Type ) : Text

Textual representation of type

[+] override def toText ( tree: Tree [ T ] ) : Text

Textual representation of tree

[+] override def toText ( sym: Symbol ) : Text

Textual representation, including symbol's kind e.g., "class Foo", "method Bar". If hasMeaninglessName is true, uses the owner's name to disambiguate identity.

[+] override def toText ( denot: Denotation ) : Text

Textual representation of denotation

[+] protected def toTextCore ( tree: Tree [ T ] ) : Text
[+] override def toTextFlags ( sym: Symbol ) : Text

String representation of symbol's flags

[+] private def toTextOwner ( tree: Tree [ Nothing <: Any ] ) : Text
[+] protected def toTextPackageId ( pid: Tree [ T ] ) : Text
[+] override def toTextPrefix ( tp: Type ) : Text

The string representation of this type used as a prefix

[+] override def toTextRef ( tp: SingletonType ) : Text

The string representation of this type used as a prefix

[+] protected def toTextTemplate ( impl: Template , ofNew: Boolean ) : Text
[+] protected def toTextTemplate$default$2 : Boolean
[+] def tparamsText ( params: List [ Tree [ T ] ] ) : Text
[+] protected override def treatAsTypeArg ( sym: Symbol ) : Boolean
[+] protected override def treatAsTypeParam ( sym: Symbol ) : Boolean
[+] protected def typeApplyText ( tree: TypeApply [ T ] ) : Text
[+] private def useSymbol ( tree: Tree ) : Boolean
[+] protected def valDefToText ( tree: ValDef [ T ] ) : Text
[+] def withEnclosingDef ( enclDef: Tree [ Untyped <: Any ] ) ( op: => Text ) : Text
[+] private def withPos ( txt: Text , pos: SourcePosition ) : Text
[+] def withoutPos ( op: => Text ) : Text