trait ContextOps extends AnyRef
This contains the definition for Context
, along with standard error throwing capabilities with user friendly
formatted errors that can change their output depending on the context mode.
- Self Type
- TastyUniverse
- Source
- ContextOps.scala
- Alphabetic
- By Inheritance
- ContextOps
- AnyRef
- Any
- by SafeEq
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed abstract class Context extends AnyRef
Maintains state through traversal of a TASTy file, such as the outer scope of the defintion being traversed, the traversal mode, and the root owners and source path for the TASTy file.
Maintains state through traversal of a TASTy file, such as the outer scope of the defintion being traversed, the traversal mode, and the root owners and source path for the TASTy file. It also provides all operations for manipulation of the symbol table, such as creating/updating symbols and updating their types.
- final class FreshContext extends TastyUniverse.Context
- final class InitialContext extends TastyUniverse.Context
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def !==(u: ContextOps): Boolean
- Implicit
- This member is added by an implicit conversion from ContextOps toSafeEq[ContextOps] 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 ContextOps toany2stringadd[ContextOps] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ContextOps, B)
- Implicit
- This member is added by an implicit conversion from ContextOps toArrowAssoc[ContextOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ===(u: ContextOps): Boolean
- Implicit
- This member is added by an implicit conversion from ContextOps toSafeEq[ContextOps] performed by method SafeEq in scala.tools.nsc.tasty.
- Definition Classes
- SafeEq
- Annotations
- @inline()
- final def abortWith[T](msg: String): T
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def assert(assertion: Boolean): Unit
- Annotations
- @inline()
- final def assert(assertion: Boolean, msg: => Any): Unit
- Annotations
- @inline()
- def boundsString(owner: TastyUniverse.Symbol): String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (ContextOps) => Boolean, msg: => Any): ContextOps
- Implicit
- This member is added by an implicit conversion from ContextOps toEnsuring[ContextOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ContextOps) => Boolean): ContextOps
- Implicit
- This member is added by an implicit conversion from ContextOps toEnsuring[ContextOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ContextOps
- Implicit
- This member is added by an implicit conversion from ContextOps toEnsuring[ContextOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ContextOps
- Implicit
- This member is added by an implicit conversion from ContextOps toEnsuring[ContextOps] 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 formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ContextOps toStringFormat[ContextOps] 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 inIndexScopedStatsContext(op: (TastyUniverse.Context) => Unit)(implicit ctx: TastyUniverse.Context): Unit
an aggregate of
inInnerScopeContext
withininIndexStatsContext
- def inIndexStatsContext(op: (TastyUniverse.Context) => Unit)(implicit ctx: TastyUniverse.Context): Unit
Perform an operation within a context that has the mode
IndexStats
will force any collected annotations afterwards - def inInnerScopeContext(op: (TastyUniverse.Context) => Unit)(implicit ctx: TastyUniverse.Context): Unit
Perform an operation within a context that has the mode
InnerScope
will enter any inline methods afterwards - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def location(owner: TastyUniverse.Symbol): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def typeError[T](msg: String): T
- Annotations
- @inline()
- final def unsupportedError[T](noun: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- final def unsupportedMessage(noun: String)(implicit ctx: TastyUniverse.Context): String
- Annotations
- @inline()
- final def unsupportedTermTreeError[T](noun: String)(implicit ctx: TastyUniverse.Context): T
- Annotations
- @inline()
- 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): (ContextOps, B)
- Implicit
- This member is added by an implicit conversion from ContextOps toArrowAssoc[ContextOps] 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.