class TreeReader extends AnyRef
- Alphabetic
- By Inheritance
- TreeReader
- AnyRef
- Any
- by SafeEq
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TreeReader(reader: TastyReader)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- final def ##: Int
- Definition Classes
- AnyRef → Any
- 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
- 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()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- 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
- 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
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fork: TreeReader
- def forkAt(start: Addr): TreeReader
- 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
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexParams(tag: Int)(implicit ctx: Tasty.Context): Unit
Create symbols the longest consecutive sequence of parameters with given
tag
starting at current address. - def indexStats(end: Addr)(implicit ctx: Tasty.Context): Unit
Create symbols for the definitions in the statement sequence between current address and
end
. - def indexTemplateParams()(implicit ctx: Tasty.Context): Unit
Create symbols for all type and value parameters of template starting at current address.
- def isAbstractType(ttag: Int)(implicit ctx: Tasty.Context): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTopLevel: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextUnsharedTag: Int
The next tag, following through SHARED tags
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- def readConstant(tag: Int)(implicit ctx: Tasty.Context): Tasty.Constant
- def readIndexedMember()(implicit ctx: Tasty.Context): NoCycle
- def readIndexedParams[T <: MaybeCycle](tag: Int)(implicit ctx: Tasty.Context): List[T]
- def readIndexedStatAsSym(exprOwner: Tasty.Symbol)(implicit ctx: Tasty.Context): NoCycle
- def readIndexedStatsAsSyms(exprOwner: Tasty.Symbol, end: Addr)(implicit ctx: Tasty.Context): List[NoCycle]
- def readLaterWithOwner[T <: AnyRef](end: Addr, op: (TreeReader) => (Tasty.Context) => T)(implicit ctx: Tasty.Context): (Tasty.Symbol) => (Tasty.Context) => T
- 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.
- def readParamNamesAndMods(end: Addr): (List[TastyName], TastyFlagSet)
Read names in an interleaved sequence of types/bounds and (parameter) names, possibly followed by a sequence of modifiers.
- def readParamTypes[T <: Tasty.Type](n: Int)(implicit ctx: Tasty.Context): List[T]
Read
n
parameter types or bounds which are interleaved with names - def readParams[T <: MaybeCycle](tag: Int)(implicit ctx: Tasty.Context): List[T]
- def readStatsAsSyms(exprOwner: Tasty.Symbol, end: Addr)(implicit ctx: Tasty.Context): List[NoCycle]
- def readSymRef()(implicit ctx: Tasty.Context): Tasty.Symbol
Read reference to definition and return symbol created at that definition
- def readTastyName(): TastyName
- def readTerm()(implicit ctx: Tasty.Context): Tasty.Tree
- def readTpt()(implicit ctx: Tasty.Context): Tasty.Tree
- def readType()(implicit ctx: Tasty.Context): Tasty.Type
Read a type
- def readTypeRef(): Tasty.Type
- val reader: TastyReader
- def scanTree(buf: ListBuffer[OwnerTree], mode: MemberDefMode): Unit
Record all directly nested definitions and templates in current tree as
OwnerTree
s inbuf
.Record all directly nested definitions and templates in current tree as
OwnerTree
s inbuf
. 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. - def scanTrees(buf: ListBuffer[OwnerTree], end: Addr, mode: MemberDefMode): Unit
Record all directly nested definitions and templates between current address and
end
asOwnerTree
s inbuf
- def skipParams(): Unit
- def skipTree(): Unit
- def skipTree(tag: Int): Unit
- def skipTypeParams(): Unit
- def symbolAt(addr: Addr)(implicit ctx: Tasty.Context): Tasty.Symbol
The symbol at given address; create a new one if none exists yet
- def symbolAtCurrent()(implicit ctx: Tasty.Context): Tasty.Symbol
The symbol defined by current definition
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- 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.
The Scala compiler and reflection APIs.