Packages

  • package root

    The Scala compiler and reflection APIs.

    The Scala compiler and reflection APIs.

    Definition Classes
    root
  • package scala
    Definition Classes
    root
  • package tools
    Definition Classes
    scala
  • package nsc
    Definition Classes
    tools
  • package tasty
    Definition Classes
    nsc
  • class TreeUnpickler[Tasty <: TastyUniverse] extends AnyRef

    TreeUnpickler is responsible for traversing all trees in the "ASTs" section of a TASTy file, which represent the definitions inside the classfile associated with the root class/module.

    TreeUnpickler is responsible for traversing all trees in the "ASTs" section of a TASTy file, which represent the definitions inside the classfile associated with the root class/module. TreeUnpickler will enter the public api of the TASTy file into the symbolTable of TastyUniverse. "Public API" includes annotations when they are simple trees.

    Where possible, TreeUnpickler should not directly manipulate values created by the symbolTable, but use operations provided by TastyUniverse

    Definition Classes
    tasty
  • Completer
  • OwnerTree
  • TreeReader

class TreeReader extends AnyRef

Source
TreeUnpickler.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeReader
  2. AnyRef
  3. Any
Implicitly
  1. by SafeEq
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TreeReader(reader: TastyReader)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def !==(u: TreeReader): Boolean
    Implicit
    This member is added by an implicit conversion from TreeReader toSafeEq[TreeReader] performed by method SafeEq in scala.tools.nsc.tasty.
    Definition Classes
    SafeEq
    Annotations
    @inline()
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from TreeReader toany2stringadd[TreeReader] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (TreeReader, B)
    Implicit
    This member is added by an implicit conversion from TreeReader toArrowAssoc[TreeReader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def ===(u: TreeReader): Boolean
    Implicit
    This member is added by an implicit conversion from TreeReader toSafeEq[TreeReader] performed by method SafeEq in scala.tools.nsc.tasty.
    Definition Classes
    SafeEq
    Annotations
    @inline()
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def createMemberSymbol()(implicit ctx: Tasty.Context): Tasty.Symbol

    Create symbol of member definition or parameter node and enter in symAtAddr map

    Create symbol of member definition or parameter node and enter in symAtAddr map

    returns

    the created symbol

  11. def createSymbol()(implicit ctx: Tasty.Context): Tasty.Symbol

    Create symbol of definition node and enter in symAtAddr map

    Create symbol of definition node and enter in symAtAddr map

    returns

    the created symbol

  12. def ensuring(cond: (TreeReader) => Boolean, msg: => Any): TreeReader
    Implicit
    This member is added by an implicit conversion from TreeReader toEnsuring[TreeReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (TreeReader) => Boolean): TreeReader
    Implicit
    This member is added by an implicit conversion from TreeReader toEnsuring[TreeReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: => Any): TreeReader
    Implicit
    This member is added by an implicit conversion from TreeReader toEnsuring[TreeReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): TreeReader
    Implicit
    This member is added by an implicit conversion from TreeReader toEnsuring[TreeReader] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. def fork: TreeReader
  20. def forkAt(start: Addr): TreeReader
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def indexParams(tag: Int)(implicit ctx: Tasty.Context): Unit

    Create symbols the longest consecutive sequence of parameters with given tag starting at current address.

  24. def indexStats(end: Addr)(implicit ctx: Tasty.Context): Unit

    Create symbols for the definitions in the statement sequence between current address and end.

  25. def indexTemplateParams()(implicit ctx: Tasty.Context): Unit

    Create symbols for all type and value parameters of template starting at current address.

  26. def isAbstractType(ttag: Int)(implicit ctx: Tasty.Context): Boolean
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def isTopLevel: Boolean
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def nextUnsharedTag: Int

    The next tag, following through SHARED tags

  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def processPackage[T](op: (Addr) => (Tasty.Context) => T)(implicit ctx: Tasty.Context): T

    Process package with given operation op.

    Process package with given operation op. The operation takes as arguments

    • an end address,
    • a context which has the processed package as owner
  34. def readConstant(tag: Int)(implicit ctx: Tasty.Context): Tasty.Constant
  35. def readIndexedMember()(implicit ctx: Tasty.Context): NoCycle
  36. def readIndexedParams[T <: MaybeCycle](tag: Int)(implicit ctx: Tasty.Context): List[T]
  37. def readIndexedStatAsSym(exprOwner: Tasty.Symbol)(implicit ctx: Tasty.Context): NoCycle
  38. def readIndexedStatsAsSyms(exprOwner: Tasty.Symbol, end: Addr)(implicit ctx: Tasty.Context): List[NoCycle]
  39. def readLaterWithOwner[T <: AnyRef](end: Addr, op: (TreeReader) => (Tasty.Context) => T)(implicit ctx: Tasty.Context): (Tasty.Symbol) => (Tasty.Context) => T
  40. def readModifiers[WithinType](end: Addr, readAnnot: (Tasty.Context) => Tasty.DeferredAnnotation, readWithin: (Tasty.Context) => WithinType, defaultWithin: WithinType)(implicit ctx: Tasty.Context): (TastyFlagSet, List[Tasty.DeferredAnnotation], WithinType)

    Read modifier list into triplet of flags, annotations and a privateWithin boundary symbol.

  41. def readParamNamesAndMods(end: Addr): (ArraySeq[TastyName], TastyFlagSet)

    Read names in an interleaved sequence of types/bounds and (parameter) names, possibly followed by a sequence of modifiers.

  42. def readParamTypes(ps: ArraySeq[Tasty.Symbol])(implicit ctx: Tasty.Context): ArraySeq[Tasty.Type]

    Read n parameter types or bounds which are interleaved with names

  43. def readParams[T <: MaybeCycle](tag: Int)(implicit ctx: Tasty.Context): List[T]
  44. def readStatsAsSyms(exprOwner: Tasty.Symbol, end: Addr)(implicit ctx: Tasty.Context): List[NoCycle]
  45. def readSymRef()(implicit ctx: Tasty.Context): Tasty.Symbol

    Read reference to definition and return symbol created at that definition

  46. def readTastyName(): TastyName
  47. def readTerm()(implicit ctx: Tasty.Context): Tasty.Tree
  48. def readTpt()(implicit ctx: Tasty.Context): Tasty.Tree
  49. def readType()(implicit ctx: Tasty.Context): Tasty.Type

    Read a type

  50. def readTypeRef(): Tasty.Type
  51. val reader: TastyReader
  52. def scanTree(buf: ListBuffer[OwnerTree], mode: MemberDefMode): Unit

    Record all directly nested definitions and templates in current tree as OwnerTrees in buf.

    Record all directly nested definitions and templates in current tree as OwnerTrees in buf. A complication concerns member definitions. These are lexically nested in a Template node, but need to be listed separately in the OwnerTree of the enclosing class in order not to confuse owner chains.

  53. def scanTrees(buf: ListBuffer[OwnerTree], end: Addr, mode: MemberDefMode): Unit

    Record all directly nested definitions and templates between current address and end as OwnerTrees in buf

  54. def skipParams(): Unit
  55. def skipTree(): Unit
  56. def skipTree(tag: Int): Unit
  57. def symbolAt(addr: Addr)(implicit ctx: Tasty.Context): Tasty.Symbol

    The symbol at given address; create a new one if none exists yet

  58. def symbolAtCurrent()(implicit ctx: Tasty.Context): Tasty.Symbol

    The symbol defined by current definition

  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  62. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from TreeReader toStringFormat[TreeReader] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (TreeReader, B)
    Implicit
    This member is added by an implicit conversion from TreeReader toArrowAssoc[TreeReader] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion SafeEq fromTreeReader to SafeEq[TreeReader]

Inherited by implicit conversion any2stringadd fromTreeReader to any2stringadd[TreeReader]

Inherited by implicit conversion StringFormat fromTreeReader to StringFormat[TreeReader]

Inherited by implicit conversion Ensuring fromTreeReader to Ensuring[TreeReader]

Inherited by implicit conversion ArrowAssoc fromTreeReader to ArrowAssoc[TreeReader]

Ungrouped