Scala Compiler2.13.18 < Back


# 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
-  package bridge
  Definition Classes
    tasty
- AnnotationOps
- ContextOps
- FlagOps
- NameOps
- SymbolOps
- TastyCore
- TreeOps
- TypeOps

t

scala.tools.nsc.tasty.bridge

# ContextOps

###

#### 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

Linear Supertypes
AnyRef, Any
Known Subclasses
TastyUniverse, TastyUniverse
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. ContextOps
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

### Type Members

1.  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.

2.  final class FreshContext extends TastyUniverse.Context
3.  final class InitialContext extends TastyUniverse.Context
4.  trait TraceFrame extends AnyRef
5.  final case class TraceInfo[-T](query: String, qual: String, res: (T) => String, modifiers: List[String] = Nil) extends Product with Serializable

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  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()
3.  final def ##: Int
   Definition Classes
     AnyRef → Any
4.  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
5.  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()
6.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
7.  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()
8.  final def abortWith[T](msg: String): T
9.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
10.  final def assert(assertion: Boolean): Unit
    Annotations
      @inline()
11.  final def assert(assertion: Boolean, msg: => Any): Unit
    Annotations
      @inline()
12.  def boundsString(owner: TastyUniverse.Symbol)(implicit ctx: TastyUniverse.Context): String
13.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.CloneNotSupportedException]) @native()
14.  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
15.  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
16.  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
17.  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
18.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
20.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
21.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
22.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
23.  def inIndexScopedStatsContext[T](op: (TastyUniverse.Context) => T)(implicit ctx: TastyUniverse.Context): T

    an aggregate of `inInnerScopeContext` within `inIndexStatsContext`

24.  def inIndexStatsContext[T](op: (TastyUniverse.Context) => T)(implicit ctx: TastyUniverse.Context): T

    Perform an operation within a context that has the mode `IndexStats` will force any collected annotations afterwards

25.  def inInnerScopeContext[T](op: (TastyUniverse.Context) => T)(implicit ctx: TastyUniverse.Context): T

    Perform an operation within a context that has the mode `InnerScope` will enter any inline methods afterwards

26.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
27.  final def location(owner: TastyUniverse.Symbol)(implicit ctx: TastyUniverse.Context): String
28.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
29.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
30.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
31.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
32.  def toString(): String
    Definition Classes
      AnyRef → Any
33.  final def typeError[T](msg: String): T
    Annotations
      @inline()
34.  final def unsupportedError[T](noun: String)(implicit ctx: TastyUniverse.Context): T
    Annotations
      @inline()
35.  final def unsupportedMessage(noun: String)(implicit ctx: TastyUniverse.Context): String
    Annotations
      @inline()
36.  final def unsupportedTermTreeError[T](noun: String)(implicit ctx: TastyUniverse.Context): T
    Annotations
      @inline()
37.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
38.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
39.  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 ContextOps toStringFormat[ContextOps] 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): (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.

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion SafeEq fromContextOps to SafeEq[ContextOps]

### Inherited by implicit conversion any2stringadd fromContextOps to any2stringadd[ContextOps]

### Inherited by implicit conversion StringFormat fromContextOps to StringFormat[ContextOps]

### Inherited by implicit conversion Ensuring fromContextOps to Ensuring[ContextOps]

### Inherited by implicit conversion ArrowAssoc fromContextOps to ArrowAssoc[ContextOps]

### Ungrouped