scala.tools.nsc.typechecker.Contexts

Context

class Context extends AnyRef

Source
Contexts.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Context
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Analyzer.Context, B)

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to ArrowAssoc[Analyzer.Context] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def ambiguousErrors: Boolean

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. var buffer: Set[Analyzer.AbsTypeError]

  11. def bufferErrors: Boolean

  12. var checking: Boolean

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. def condBufferFlush(removeP: (Analyzer.AbsTypeError) ⇒ Boolean): Unit

  15. var depth: Int

  16. var diagnostic: List[String]

  17. var enclClass: Analyzer.Context

  18. def enclClassOrMethod: Analyzer.Context

  19. var enclMethod: Analyzer.Context

  20. def enclosingContextChain: List[Analyzer.Context]

  21. def enclosingSubClassContext(clazz: Global.Symbol): Analyzer.Context

    Return the closest enclosing context that defines a subclass of clazz or a companion object thereof, or NoContext if no such context exists.

  22. var enrichmentEnabled: Boolean

  23. def ensuring(cond: (Analyzer.Context) ⇒ Boolean, msg: ⇒ Any): Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to Ensuring[Analyzer.Context] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: (Analyzer.Context) ⇒ Boolean): Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to Ensuring[Analyzer.Context] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: Boolean, msg: ⇒ Any): Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to Ensuring[Analyzer.Context] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean): Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to Ensuring[Analyzer.Context] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  29. def errBuffer: Set[Analyzer.AbsTypeError]

  30. def error(pos: Global.Position, msg: String): Unit

  31. def error(pos: Global.Position, err: Throwable): Unit

  32. def extractUndetparams(): List[Global.Symbol]

  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def flushAndReturnBuffer(): Set[Analyzer.AbsTypeError]

  35. def flushBuffer(): Unit

  36. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  37. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  38. def hasErrors: Boolean

  39. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  40. var implicitsEnabled: Boolean

  41. def implicitss: List[List[Analyzer.ImplicitInfo]]

  42. def importedAccessibleSymbol(imp: Analyzer.ImportInfo, name: Global.Name): Global.Symbol

    The symbol with name name imported via the import in imp, if any such symbol is accessible from this context.

  43. var imports: List[Analyzer.ImportInfo]

  44. var inConstructorSuffix: Boolean

  45. var inSelfSuperCall: Boolean

  46. def isAccessible(sym: Global.Symbol, pre: Global.Type, superAccess: Boolean = false): Boolean

    Is sym accessible as a member of pre in current context?

  47. def isInPackageObject(sym: Global.Symbol, pkg: Global.Symbol): Boolean

    Is sym defined in package object of package pkg? Since sym may be defined in some parent of the package object, we cannot inspect its owner only; we have to go through the info of the package object.

    Is sym defined in package object of package pkg? Since sym may be defined in some parent of the package object, we cannot inspect its owner only; we have to go through the info of the package object. However to avoid cycles we'll check what other ways we can before pushing that way.

  48. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  49. def isLocal(): Boolean

  50. def isNameInScope(name: Global.Name): Boolean

  51. def isSubClassOrCompanion(sub: Global.Symbol, base: Global.Symbol): Boolean

    Is sub a subclass of base or a companion object of such a subclass?

  52. def issue(err: Analyzer.AbsTypeError): Unit

  53. def issueAmbiguousError(err: Analyzer.AbsTypeError): Unit

  54. def issueAmbiguousError(pre: Global.Type, sym1: Global.Symbol, sym2: Global.Symbol, err: Analyzer.AbsTypeError): Unit

  55. def lookup(name: Global.Name, expectedOwner: Global.Symbol): Global.Symbol

    Find a symbol in this context or one of its outers.

    Find a symbol in this context or one of its outers.

    Used to find symbols are owned by methods (or fields), they can't be found in some scope.

    Examples: companion module of classes owned by a method, default getter methods of nested methods. See NamesDefaults.scala

  56. def lookupSymbol(name: Global.Name, qualifies: (Global.Symbol) ⇒ Boolean): Global.NameLookup

    Find the symbol of a simple name starting from this context.

    Find the symbol of a simple name starting from this context. All names are filtered through the "qualifies" predicate, the search continuing as long as no qualifying name is found.

  57. var macrosEnabled: Boolean

  58. def make(tree: Global.Tree): Analyzer.Context

  59. def make(tree: Global.Tree, owner: Global.Symbol): Analyzer.Context

  60. def make(tree: Global.Tree, owner: Global.Symbol, scope: Global.Scope): Analyzer.Context

  61. def make(unit: Global.CompilationUnit, tree: Global.Tree, owner: Global.Symbol, scope: Global.Scope, imports: List[Analyzer.ImportInfo]): Analyzer.Context

  62. def makeConstructorContext: Analyzer.Context

  63. def makeImplicit(reportAmbiguousErrors: Boolean): Analyzer.Context

  64. def makeNewImport(imp: Global.Import): Analyzer.Context

  65. def makeNewImport(sym: Global.Symbol): Analyzer.Context

  66. def makeNewScope(tree: Global.Tree, owner: Global.Symbol): Analyzer.Context

  67. def makeSilent(reportAmbiguousErrors: Boolean, newtree: Global.Tree = tree): Analyzer.Context

  68. var namedApplyBlockInfo: Option[(Global.Tree, Analyzer.NamedApplyInfo)]

  69. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  70. def nextEnclosing(p: (Analyzer.Context) ⇒ Boolean): Analyzer.Context

  71. final def notify(): Unit

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

    Definition Classes
    AnyRef
  73. var openImplicits: List[(Global.Type, Global.Tree)]

  74. var outer: Analyzer.Context

  75. var owner: Global.Symbol

  76. var prefix: Global.Type

  77. def pushTypeBounds(sym: Global.Symbol): Unit

  78. def reportErrors: Boolean

  79. def resetCache(): Unit

  80. def restoreState(state0: Int): Unit

  81. def restoreTypeBounds(tp: Global.Type): Global.Type

  82. var returnsSeen: Boolean

  83. var retyping: Boolean

  84. var savedTypeBounds: List[(Global.Symbol, Global.Type)]

  85. final def savingEnclClass[A](c: Analyzer.Context)(a: ⇒ A): A

    Annotations
    @inline()
  86. var scope: Global.Scope

  87. def setAmbiguousErrors(report: Boolean): Unit

  88. def setBufferErrors(): Unit

  89. def setReportErrors(): Unit

  90. def setThrowErrors(): Unit

  91. def state: Int

  92. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  93. def throwErrors: Boolean

  94. def toString(): String

    Definition Classes
    Context → AnyRef → Any
  95. var tree: Global.Tree

  96. def typingIndent: String

  97. var typingIndentLevel: Int

  98. def undetparams: List[Global.Symbol]

  99. def undetparamsString: String

  100. def undetparams_=(ps: List[Global.Symbol]): Unit

  101. var unit: Global.CompilationUnit

  102. def updateBuffer(errors: Set[Analyzer.AbsTypeError]): Set[Analyzer.AbsTypeError]

  103. var variance: Int

  104. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  107. def warning(pos: Global.Position, msg: String, force: Boolean): Unit

  108. def warning(pos: Global.Position, msg: String): Unit

  109. def withImplicitsDisabled[T](op: ⇒ T): T

  110. def withImplicitsDisabledAllowEnrichment[T](op: ⇒ T): T

  111. def withImplicitsEnabled[T](op: ⇒ T): T

  112. def withMacrosDisabled[T](op: ⇒ T): T

  113. def withMacrosEnabled[T](op: ⇒ T): T

  114. def [B](y: B): (Analyzer.Context, B)

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to ArrowAssoc[Analyzer.Context] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (context: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (context: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to ArrowAssoc[Analyzer.Context] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (context: ArrowAssoc[Analyzer.Context]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Analyzer.Context

    Implicit information
    This member is added by an implicit conversion from Analyzer.Context to Ensuring[Analyzer.Context] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (context: Ensuring[Analyzer.Context]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Analyzer.Context to StringAdd

Inherited by implicit conversion any2stringfmt from Analyzer.Context to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Analyzer.Context to ArrowAssoc[Analyzer.Context]

Inherited by implicit conversion any2Ensuring from Analyzer.Context to Ensuring[Analyzer.Context]

Ungrouped