dotty.tools.dotc.printing

RefinedPrinter

Related Doc: package printing

class RefinedPrinter extends PlainPrinter

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

Instance Constructors

  1. new RefinedPrinter(_ctx: Context)

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val PrintableFlags: FlagSet

    Attributes
    protected
  5. def annotsText(sym: Symbol): Text

    Definition Classes
    PlainPrinter
  6. def argText(arg: Type): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def atPrec(prec: Precedence)(op: ⇒ Text): Text

    Generate text using op, assuming a given precedence level prec.

    Generate text using op, assuming a given precedence level prec.

    Definition Classes
    Printer
  9. def blockText[T >: Untyped](trees: List[Tree[T]]): Text

  10. def changePrec(prec: Precedence)(op: ⇒ Text): Text

    Generate text using op, assuming a given precedence level prec.

    Generate text using op, assuming a given precedence level prec. If new level prec is lower than previous level, put text in parentheses.

    Definition Classes
    Printer
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def controlled(op: ⇒ Text): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  13. implicit def ctx: Context

    Attributes
    protected[this]
    Definition Classes
    RefinedPrinterPlainPrinter
  14. def currentPrecedence: Precedence

    The current precedence level

    The current precedence level

    Definition Classes
    Printer
  15. def dclText(d: SingleDenotation): Text

    Textual representation of single denotation's declaration

    Textual representation of single denotation's declaration

    Definition Classes
    PlainPrinterPrinter
  16. def dclText(sym: Symbol): Text

    Textual representation of symbol's declaration

    Textual representation of symbol's declaration

    Definition Classes
    PlainPrinterPrinter
  17. def dclsText(syms: List[Symbol], sep: String): Text

    Textual representation of all symbols in given list, using dclText for displaying each.

    Textual representation of all symbols in given list, using dclText for displaying each.

    Definition Classes
    PlainPrinterPrinter
  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def escapedString(str: String): String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  21. def extendedLocationText(sym: Symbol): Text

    A description of sym's location

    A description of sym's location

    Definition Classes
    PlainPrinterPrinter
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def fullNameOwner(sym: Symbol): Symbol

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  24. def fullNameString(sym: Symbol): String

    The fully qualified name of the symbol

    The fully qualified name of the symbol

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hasMeaninglessName(sym: Symbol): Boolean

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.g.

    If the name of the symbol's owner should be used when you care about seeing an interesting name: in such cases this symbol is e.g. a method parameter with a synthetic name, a constructor named "this", an object "package", etc. The kind string, if non-empty, will be phrased relative to the name of the owner.

    Attributes
    protected
    Definition Classes
    PlainPrinter
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def homogenize(tp: Type): Type

    Definition Classes
    PlainPrinter
  29. def homogenizedView: Boolean

    If true, tweak output so it is the same before and after pickling

    If true, tweak output so it is the same before and after pickling

    Attributes
    protected
    Definition Classes
    PlainPrinter
  30. def idString(sym: Symbol): String

    If -uniqid is set, the unique id of symbol, after a #

    If -uniqid is set, the unique id of symbol, after a #

    Attributes
    protected
    Definition Classes
    PlainPrinter
  31. def isEmptyPrefix(sym: Symbol): Boolean

    Attributes
    protected
    Definition Classes
    PlainPrinter
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isOmittablePrefix(sym: Symbol): Boolean

    Attributes
    protected
    Definition Classes
    PlainPrinter
  34. def keyString(sym: Symbol): String

    String representation of symbol's definition key word

    String representation of symbol's definition key word

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  35. def kindString(sym: Symbol): String

    String representation of symbol's kind.

    String representation of symbol's kind.

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  36. def locatedText(sym: Symbol): Text

    Textual representation of symbol and its location

    Textual representation of symbol and its location

    Definition Classes
    PlainPrinterPrinter
  37. def locationText(sym: Symbol): Text

    If symbol's owner is a printable class C, the text "in C", otherwise ""

    If symbol's owner is a printable class C, the text "in C", otherwise ""

    Definition Classes
    PlainPrinterPrinter
  38. def maxToTextRecursions: Int

    Attributes
    protected
    Definition Classes
    PlainPrinter
  39. def nameString(name: Name): String

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

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

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  40. def nameString(sym: Symbol): String

    The name of the given symbol.

    The name of the given symbol. If !settings.debug, the original name where expansions of operators are translated back to operator symbol. E.g. $eq => =. If settings.uniqid, adds id.

    Definition Classes
    PlainPrinterPrinter
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

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

    Definition Classes
    AnyRef
  44. def objectPrefix: String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  45. def optText[T >: Untyped](tree: List[Tree[T]])(encl: (Text) ⇒ Text): Text

  46. def optText[T >: Untyped](tree: Tree[T])(encl: (Text) ⇒ Text): Text

  47. def optText(name: Name)(encl: (Text) ⇒ Text): Text

  48. def packagePrefix: String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  49. def plain: PlainPrinter

    A plain printer without any embellishments

    A plain printer without any embellishments

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  50. def polyHash(pt: GenericType): Text

    If -uniqid is set, the hashcode of the polytype, after a #

    If -uniqid is set, the hashcode of the polytype, after a #

    Attributes
    protected
    Definition Classes
    PlainPrinter
  51. def polyParamNameString(name: TypeName): String

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  52. def polyParamNameString(param: PolyParam): String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  53. def recursionLimitExceeded(): Unit

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  54. def refinementNameString(tp: RefinedType): String

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

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

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  55. def selectionString(tp: NamedType): String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  56. def simpleNameString(sym: Symbol): String

    The name of the symbol without a unique id.

    The name of the symbol without a unique id. Under refined printing, the decoded original name.

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  57. def summarized[T](op: ⇒ T): T

    Definition Classes
    PlainPrinter
  58. def summarized[T](depth: Int)(op: ⇒ T): T

    Perform string or text-producing operation op so that only a summarized text with given recursion depth is shown

    Perform string or text-producing operation op so that only a summarized text with given recursion depth is shown

    Definition Classes
    PlainPrinterPrinter
  59. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  60. def toString(): String

    Definition Classes
    AnyRef → Any
  61. def toText(denot: Denotation): Text

    Textual representation of denotation

    Textual representation of denotation

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  62. def toText(sym: Symbol): Text

    Textual representation, including symbol's kind e.g., "class Foo", "method Bar".

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

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  63. def toText[T >: Untyped](tree: Tree[T]): Text

    Textual representation of tree

    Textual representation of tree

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  64. def toText(tp: Type): Text

    Textual representation of type

    Textual representation of type

    Definition Classes
    RefinedPrinterPlainPrinterPrinter
  65. def toText(sc: Scope): Text

    Textual representation of all definitions in a scope using dclText for each

    Textual representation of all definitions in a scope using dclText for each

    Definition Classes
    PlainPrinterPrinter
  66. def toText(annot: Annotation): Text

    Textual representation of annotation

    Textual representation of annotation

    Definition Classes
    PlainPrinterPrinter
  67. def toText(const: Constant): Text

    Textual representation of constant

    Textual representation of constant

    Definition Classes
    PlainPrinterPrinter
  68. def toText(name: Name): Text

    The name as a text

    The name as a text

    Definition Classes
    PlainPrinterPrinter
  69. def toText(elems: Traversable[Showable], sep: String): Text

    Render elements alternating with sep string

    Render elements alternating with sep string

    Attributes
    protected
    Definition Classes
    PlainPrinter
  70. def toTextFlags(sym: Symbol): Text

    String representation of symbol's flags

    String representation of symbol's flags

    Definition Classes
    RefinedPrinterPlainPrinter
  71. def toTextGlobal(elems: Traversable[Showable], sep: String): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  72. def toTextGlobal(elem: Showable): Text

    Render element within lowest precedence

    Render element within lowest precedence

    Attributes
    protected
    Definition Classes
    PlainPrinter
  73. def toTextLocal(elems: Traversable[Showable], sep: String): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  74. def toTextLocal(elem: Showable): Text

    Render element within highest precedence

    Render element within highest precedence

    Attributes
    protected
    Definition Classes
    PlainPrinter
  75. def toTextParents(parents: List[Type]): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  76. def toTextPrefix(tp: Type): Text

    The string representation of this type used as a prefix

    The string representation of this type used as a prefix

    Definition Classes
    RefinedPrinterPlainPrinter
  77. def toTextRHS(tp: Type): Text

    String representation of a definition's type following its name

    String representation of a definition's type following its name

    Attributes
    protected
    Definition Classes
    PlainPrinter
  78. def toTextRHS(optType: Option[Type]): Text

    String representation of a definition's type following its name, if symbol is completed, "?" otherwise.

    String representation of a definition's type following its name, if symbol is completed, "?" otherwise.

    Attributes
    protected
    Definition Classes
    PlainPrinter
  79. def toTextRef(tp: SingletonType): Text

    The string representation of this type used as a prefix

    The string representation of this type used as a prefix

    Definition Classes
    RefinedPrinterPlainPrinter
  80. def toTextRefinement(rt: RefinedType): Closed

    String representation of a refinement

    String representation of a refinement

    Attributes
    protected
    Definition Classes
    PlainPrinter
  81. def treatAsTypeArg(sym: Symbol): Boolean

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  82. def treatAsTypeParam(sym: Symbol): Boolean

    Attributes
    protected
    Definition Classes
    RefinedPrinterPlainPrinter
  83. def trimPrefix(text: Text): Text

    Attributes
    protected
    Definition Classes
    PlainPrinter
  84. def typeLambdaText(paramNames: List[String], variances: List[Int], argBoundss: List[TypeBounds], body: Type): Text

    The text for a TypeLambda

    The text for a TypeLambda

    [v_1 p_1: B_1, ..., v_n p_n: B_n] -> T

    where

    paramNames

    p_1, ..., p_n

    variances

    v_1, ..., v_n

    argBoundss

    B_1, ..., B_n

    body

    T

    Attributes
    protected
    Definition Classes
    PlainPrinter
  85. def varianceString(v: Int): String

    Attributes
    protected
    Definition Classes
    PlainPrinter
  86. def varianceString(sym: Symbol): String

    String representation of symbol's variance or "" if not applicable

    String representation of symbol's variance or "" if not applicable

    Attributes
    protected
    Definition Classes
    PlainPrinter
  87. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. def withEnclosingDef(enclDef: Tree[_ >: Untyped])(op: ⇒ Text): Text

Inherited from PlainPrinter

Inherited from Printer

Inherited from AnyRef

Inherited from Any

Ungrouped