scala.tools.nsc.interactive

Global

class Global extends Global with CompilerControl with RangePositions with ContextTrees with RichCompilationUnits with Picklers

The main class of the presentation compiler in an interactive environment such as an IDE

Source
Global.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Global
  2. Picklers
  3. RichCompilationUnits
  4. ContextTrees
  5. RangePositions
  6. CompilerControl
  7. Global
  8. PhaseAssembly
  9. Plugins
  10. CompilationUnits
  11. SymbolTable
  12. TypeDebugging
  13. DocComments
  14. Positions
  15. TreePrinters
  16. Trees
  17. AnnotationCheckers
  18. AnnotationInfos
  19. StdNames
  20. NameManglers
  21. InfoTransformers
  22. BaseTypeSeqs
  23. Definitions
  24. Scopes
  25. Types
  26. Symbols
  27. Names
  28. Universe
  29. StandardDefinitions
  30. AnnotationInfos
  31. Trees
  32. StdNames
  33. Names
  34. Scopes
  35. Constants
  36. Types
  37. Symbols
  38. AnyRef
  39. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Global (settings: Settings, reporter: Reporter, projectName: String)

Type Members

  1. case class AnnotatedType (annotations: List[AnnotationInfo], underlying: Type, selfsym: Symbol) extends Type with RewrappingTypeProxy with Product with Serializable

    A type carrying some annotations.

  2. class AnnotationChecker extends AnyRef

    An additional checker for annotations on types.

  3. case class AnnotationInfo (atp: Type, args: List[Tree], assocs: List[(Name, ClassfileAnnotArg)]) extends AnnotationInfoBase with Product with Serializable

    Typed information about an annotation.

  4. class AnnotationInfoBase extends AnyRef

  5. case class AntiPolyType (pre: Type, targs: List[Type]) extends Type with Product with Serializable

    A class remembering a type instantiation for some a set of overloaded polymorphic symbols.

  6. class ApplyImplicitView extends Apply

  7. class ApplyToImplicitArgs extends Apply

  8. case class ArrayAnnotArg (args: Array[ClassfileAnnotArg]) extends ClassfileAnnotArg with Product with Serializable

    Represents an array of classfile annotation arguments

  9. class AsSeenFromMap extends TypeMap

    A map to compute the asSeenFrom method

  10. class AskLinkPosItem extends WorkItem

  11. class AskLoadedTypedItem extends WorkItem

  12. class AskParsedEnteredItem extends WorkItem

  13. class AskScopeCompletionItem extends WorkItem

  14. class AskToDoFirstItem extends WorkItem

  15. class AskTypeAtItem extends WorkItem

  16. class AskTypeCompletionItem extends WorkItem

  17. class AskTypeItem extends WorkItem

  18. case class AssignOrNamedArg (lhs: Tree, rhs: Tree) extends Tree with TermTree with Product with Serializable

    Either an assignment or a named argument.

  19. class BaseTypeSeq extends AnyRef

  20. case class BoundedWildcardType (bounds: TypeBounds) extends Type with Product with Serializable

  21. class ChangeOwnerTraverser extends Traverser

  22. case class ClassInfoType (parents: List[Type], decls: Scope, typeSymbol: Symbol) extends CompoundType with Product with Serializable

    A class representing a class info

  23. class ClassSymbol extends TypeSymbol

    A class for class symbols

  24. class ClassfileAnnotArg extends AnyRef

    Arguments to classfile annotations (which are written to bytecode as java annotations) are either:

  25. class CompactTreePrinter extends TreePrinter

    A tree printer which is stingier about vertical whitespace and unnecessary punctuation than the standard one.

  26. class CompilationUnit extends CompilationUnitTrait

    One unit of compilation that has been submitted to the compiler.

  27. trait CompilationUnitTrait extends AnyRef

  28. trait CompilerCommonNames extends LibraryCommonNames

  29. trait CompilerKeywords extends AnyRef

    This should be the first trait in the linearization.

  30. trait CompilerTermNames extends CompilerKeywords with CompilerCommonNames

  31. trait CompilerTypeNames extends CompilerCommonNames

  32. class CompoundType extends Type

    A common base class for intersection types and class types

  33. case class ConstantType (value: Constant) extends SingletonType with Product with Serializable

    A class representing a constant type.

  34. class ContainsCollector extends TypeCollector[Boolean]

    A map to implement the contains' method

  35. class ContainsTypeCollector extends TypeCollector[Boolean]

    A map to implement the contains' method

  36. class ContainsVariantExistentialCollector extends TypeCollector[Boolean]

    A collector that tests for existential types appearing at given variance in a type

  37. type Context = Context

    Definition Classes
    ContextTrees
  38. class ContextTree extends AnyRef

    A context tree contains contexts that are indexed by positions.

  39. type Contexts = ArrayBuffer[ContextTree]

    Definition Classes
    ContextTrees
  40. case class CyclicReference (sym: Symbol, info: Type) extends TypeError with Product with Serializable

    An exception for cyclic references of symbol definitions

  41. class DependencyGraph extends AnyRef

    Aux datastructure for solving the constraint system The depency graph container with helper methods for node and edge creation

  42. type Diff = (Int, Int, String)

    Definition Classes
    Picklers
  43. case class DocComment (raw: String, pos: Position) extends Product with Serializable

  44. case class DocDef (comment: DocComment, definition: Tree) extends Tree with Product with Serializable

    Documented definition, eliminated by analyzer

  45. class ErrorScope extends Scope

    The error scope.

  46. case class ExistentialType (quantified: List[Symbol], underlying: Type) extends Type with RewrappingTypeProxy with Product with Serializable

    Definition Classes
    Types → Types
  47. class ExpansionLimitExceeded extends Exception

  48. case class FilesDeletedItem (sources: List[SourceFile], response: Response[Unit]) extends WorkItem with Product with Serializable

  49. class FilterTreeTraverser extends Traverser

  50. class FilterTypeCollector extends TypeCollector[ListBuffer[Type]]

    A map to implement the filter' method

  51. class FindTreeTraverser extends Traverser

  52. class FindTypeCollector extends TypeCollector[Option[Type]]

    A map to implement the filter' method

  53. class ForEachTypeTraverser extends TypeTraverser

  54. class ForeachPartialTreeTraverser extends Traverser

  55. class ForeachTreeTraverser extends Traverser

  56. class GlobalPhase extends Phase

    Attributes
    abstract
  57. class InfoTransformer extends AnyRef

    Attributes
    abstract
  58. class InstantiateDependentMap extends TypeMap

  59. case class InvalidCompanions (sym1: Symbol, sym2: Symbol) extends Throwable with Product with Serializable

  60. class JavaKeywords extends AnyRef

  61. class JavaMethodType extends MethodType

  62. case class LazyAnnotationInfo (annot: () ⇒ AnnotationInfo) extends AnnotationInfoBase with Product with Serializable

    Symbol annotations parsed in Namer (typeCompleter of definitions) have to be lazy (#1782)

  63. class LazyTreeCopier extends TreeCopier

  64. class LazyType extends Type with AbsLazyType

    A class representing an as-yet unevaluated type.

  65. case class LiteralAnnotArg (const: Constant) extends ClassfileAnnotArg with Product with Serializable

    Represents a compile-time Constant (Boolean, Byte, Short, Char, Int, Long, Float, Double, String, java.

  66. class Locator extends Traverser

    A locator for trees with given positions.

  67. class MalformedType extends TypeError

    A throwable signalling a malformed type

  68. class Member extends AnyRef

    Info given for every member found by completion

  69. class MethodSymbol extends TermSymbol

    A class for method symbols

  70. case class MethodType (params: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A class representing a method type with parameters.

  71. class MissingAliasControl extends Throwable with ControlThrowable

  72. class MissingTypeControl extends Throwable with ControlThrowable

  73. class ModuleClassSymbol extends ClassSymbol

    A class for module class symbols Note: Not all module classes are of this type; when unpickled, we get plain class symbols!

  74. class ModuleSymbol extends TermSymbol

    A class for module symbols

  75. class Name extends (Int) ⇒ Char

    The name class.

  76. trait NameManglingCommon extends AnyRef

  77. case class NamedType (name: Name, tp: Type) extends Type with Product with Serializable

    A class representing types with a name.

  78. case class NestedAnnotArg (annInfo: AnnotationInfo) extends ClassfileAnnotArg with Product with Serializable

    Represents a nested classfile annotation

  79. class NoCommonType extends Throwable with ControlThrowable

  80. case class NotNullType (underlying: Type) extends SubType with RewrappingTypeProxy with Product with Serializable

  81. case class NullaryMethodType (resultType: Type) extends Type with Product with Serializable

    Definition Classes
    Types → Types
  82. class OnTypeError [T] extends AnyRef

  83. case class OverloadedType (pre: Type, alternatives: List[Symbol]) extends Type with Product with Serializable

    A class containing the alternatives and type prefix of an overloaded symbol.

  84. class PackageClassInfoType extends ClassInfoType

  85. case class Parens (args: List[Tree]) extends Tree with Product with Serializable

  86. type Period = Int

    A period is an ordinal number for a phase in a run.

    A period is an ordinal number for a phase in a run. Phases in later runs have higher periods than phases in earlier runs. Later phases have higher periods than earlier phases in the same run.

    Definition Classes
    SymbolTable
  87. case class PolyType (typeParams: List[Symbol], resultType: Type) extends Type with Product with Serializable

    A type function or the type of a polymorphic value (and thus of kind *).

  88. type Position = Position

    Definition Classes
    Positions
  89. case class Range (pos: Position, tree: Tree) extends Product with Serializable

  90. case class RefinedType (parents: List[Type], decls: Scope) extends CompoundType with Product with Serializable

    A class representing intersection types with refinements of the form <parents_0> with ... with <parents_n> { decls }' Cannot be created directly; one should always use refinedType' for creation.

  91. class RefinedType0 extends RefinedType

    Attributes
    final
  92. case class ReloadItem (sources: List[SourceFile], response: Response[Unit]) extends WorkItem with Product with Serializable

  93. type Response [T] = Response[T]

    Definition Classes
    CompilerControl
  94. class ResponseMap extends MultiHashMap[SourceFile, Response[Tree]]

  95. trait RewrappingTypeProxy extends Type with SimpleTypeProxy

    A proxy for a type (identified by field underlying') that forwards most operations to it. Every operation that is overridden for some kind of types is forwarded here. Some operations are rewrapped again.

  96. class RichCompilationUnit extends CompilationUnit

  97. class Run extends AnyRef

    A Run is a single execution of the compiler on a sets of units

  98. type RunId = Int

    An ordinal number for compiler runs.

    An ordinal number for compiler runs. First run has number 1.

    Definition Classes
    SymbolTable
  99. class SafeTreePrinter extends TreePrinter

    This must guarantee not to force any evaluation, so we can learn a little bit about trees in the midst of compilation without altering the natural course of events.

  100. case class ScalaSigBytes (bytes: Array[Byte]) extends ClassfileAnnotArg with Product with Serializable

    A specific annotation argument that encodes an array of bytes as an array of Long.

  101. class Scope extends AbsScope

  102. class ScopeEntry extends AnyRef

  103. case class ScopeMember (sym: Symbol, tpe: Type, accessible: Boolean, viaImport: Tree) extends Member with Product with Serializable

  104. trait SimpleTypeProxy extends Type

    A proxy for a type (identified by field underlying') that forwards most operations to it (for exceptions, see WrappingProxy, which forwards even more operations). every operation that is overridden for some kind of types should be forwarded.

  105. case class SingleType (pre: Type, sym: Symbol) extends SingletonType with Product with Serializable

    A class for singleton types of the form <prefix>.

  106. class SingletonType extends SubType with SimpleTypeProxy

    A base class for types that represent a single value (single-types and this-types).

  107. class StrictTreeCopier extends TreeCopier

  108. class SubType extends Type

    A base class for types that defer some operations to their immediate supertype.

  109. class SubTypePair extends AnyRef

  110. class SubstMap [T] extends TypeMap

    A base class to compute all substitutions

  111. class SubstSuperMap extends TypeMap

  112. class SubstSymMap extends SubstMap[Symbol]

    A map to implement the substSym' method.

  113. class SubstThisMap extends TypeMap

    A map to implement the substThis' method.

  114. class SubstTypeMap extends SubstMap[Type]

    A map to implement the subst' method.

  115. class SubstWildcardMap extends TypeMap

  116. case class SuperType (thistpe: Type, supertpe: Type) extends SingletonType with Product with Serializable

    Attributes
    abstract
    Definition Classes
    Types → Types
  117. class Symbol extends AbsSymbol

    The class for all symbols

  118. class SymbolNames extends AnyRef

    Attributes
    abstract
  119. class TermName extends Name

    Attributes
    final
    Definition Classes
    Names → Names
  120. trait TermNameMangling extends NameManglingCommon

  121. class TermSymbol extends Symbol

    A class for term symbols

  122. type ThisPlatform = scala.tools.nsc.backend.Platform[_] { val global: Global.this.type }

    Definition Classes
    Global
  123. case class ThisType (sym: Symbol) extends SingletonType with Product with Serializable

    A class for this-types of the form <sym>.

  124. class Transformer extends AnyRef

    Attributes
    abstract
  125. class Traverser extends Traverser

    Definition Classes
    Trees → Trees
  126. class TreeCopier extends AnyRef

    Attributes
    abstract
  127. class TreeMatchTemplate extends AnyRef

  128. class TreeOps extends AnyRef

  129. class TreePrinter extends AbsTreePrinter

  130. class TreeReplacer extends Transformer

    A transformer that replaces tree from with tree to in a given tree

  131. class TreeSubstituter extends Transformer

  132. class TreeSymSubstTraverser extends Traverser

  133. class TreeSymSubstituter extends Transformer

    Substitute symbols in 'from' with symbols in 'to'.

  134. class TreeTypeSubstituter extends Traverser

  135. class Type extends AbsType

    The base class for all types

  136. case class TypeBounds (lo: Type, hi: Type) extends SubType with Product with Serializable

    A class for the bounds of abstract types and type parameters

  137. class TypeCollector [T] extends TypeTraverser

    Attributes
    abstract
  138. class TypeConstraint extends AnyRef

    A class expressing upper and lower bounds constraints of type variables, as well as their instantiations.

  139. class TypeError extends Throwable

    A throwable signalling a type error

  140. class TypeMap extends (Type) ⇒ Type

    A prototype for mapping a function over all possible types

  141. case class TypeMember (sym: Symbol, tpe: Type, accessible: Boolean, inherited: Boolean, viaView: Symbol) extends Member with Product with Serializable

  142. class TypeName extends Name

    Attributes
    final
    Definition Classes
    Names → Names
  143. trait TypeNameMangling extends NameManglingCommon

  144. case class TypeRef (pre: Type, sym: Symbol, args: List[Type]) extends Type with Product with Serializable

    A class for named types of the form <prefix>.<sym.name>[args]' Cannot be created directly; one should always use typeRef' for creation.

  145. class TypeSkolem extends TypeSymbol

    A class for type parameters viewed from inside their scopes

  146. class TypeSymbol extends Symbol

    A class of type symbols.

  147. class TypeTraverser extends TypeMap

    Attributes
    abstract
  148. case class TypeTree () extends AbsTypeTree with Product with Serializable

    A synthetic term holding an arbitrary type.

  149. case class TypeTreeWithDeferredRefCheck (check: () ⇒ TypeTree) extends AbsTypeTree with Product with Serializable

    emitted by typer, eliminated by refchecks

  150. class TypeVar extends Type

    A class representing a type variable Not used after phase typer'. A higher-kinded type variable has type arguments (a list of Type's) and type parameters (list of Symbols) A TypeVar whose list of args is non-empty can only be instantiated by a higher-kinded type that can be applied to these args a typevar is much like a typeref, except it has special logic for type equality/subtyping

  151. class TypedLocator extends Locator

  152. class TyperResult extends Throwable with ControlThrowable

  153. class TyperRun extends Run

    The typer run

  154. class UniqueConstantType extends ConstantType with UniqueType

    Attributes
    final
  155. class UniqueSingleType extends SingleType with UniqueType

    Attributes
    final
  156. class UniqueSuperType extends SuperType with UniqueType

    Attributes
    final
  157. class UniqueThisType extends ThisType with UniqueType

    Attributes
    final
  158. trait UniqueType extends AnyRef

  159. class UniqueTypeBounds extends TypeBounds with UniqueType

    Attributes
    final
  160. class UniqueTypeRef extends TypeRef with UniqueType

    Attributes
    final
  161. case class UseCase (comment: DocComment, body: String, pos: Position) extends Product with Serializable

  162. class ValidateException extends Exception

  163. trait ValueClassDefinitions extends AnyRef

  164. class VarianceError extends TypeError

    An exception signalling a variance annotation/usage conflict

  165. case class WorkEvent (atNode: Int, atMillis: Long) extends Product with Serializable

  166. class WorkItem extends () ⇒ Unit

    Attributes
    abstract

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. object AnnotatedType extends AnnotatedTypeExtractor with Serializable

    Definition Classes
    Types → Types
  7. object AnnotationInfo extends AnnotationInfoExtractor with Serializable

    Definition Classes
    AnnotationInfos → AnnotationInfos
  8. object ApproximateDependentMap extends TypeMap

  9. object ArrayAnnotArg extends ArrayAnnotArgExtractor with Serializable

    Definition Classes
    AnnotationInfos → AnnotationInfos
  10. def Bind (sym: Symbol, body: Tree): Bind

    Definition Classes
    Trees
  11. def Block (stats: Tree*): Block

    Block factory that flattens directly nested blocks.

    Block factory that flattens directly nested blocks.

    Definition Classes
    Trees
  12. val BooleanTag : Int(2)

    Attributes
    final
    Definition Classes
    Constants
  13. val ByteTag : Int(3)

    Attributes
    final
    Definition Classes
    Constants
  14. def CaseDef (pat: Tree, body: Tree): CaseDef

    casedef shorthand

    casedef shorthand

    Definition Classes
    Trees
  15. val CharTag : Int(5)

    Attributes
    final
    Definition Classes
    Constants
  16. def ClassDef (sym: Symbol, constrMods: Modifiers, vparamss: List[List[ValDef]], argss: List[List[Tree]], body: List[Tree], superPos: Position): ClassDef

    Construct class definition with given class symbol, value parameters, supercall arguments and template body.

    Construct class definition with given class symbol, value parameters, supercall arguments and template body.

    sym

    the class symbol

    constrMods

    the modifiers for the class constructor, i.e. as in class C private (...)'

    vparamss

    the value parameters -- if they have symbols they should be owned by sym'

    argss

    the supercall arguments

    body

    the template statements without primary constructor and value parameter fields.

    Definition Classes
    Trees
  17. def ClassDef (sym: Symbol, impl: Template): ClassDef

    sym

    the class symbol

    returns

    the implementation template

    Definition Classes
    Trees
  18. object ClassInfoType extends ClassInfoTypeExtractor with Serializable

    Definition Classes
    Types → Types
  19. val ClassTag : Int(12)

    Attributes
    final
    Definition Classes
    Constants
  20. object ConsoleWriter extends Writer

    A writer that writes to the current Console and is sensitive to replacement of the Console's output stream.

  21. object ConstantType extends ConstantTypeExtractor with Serializable

    Definition Classes
    Types → Types
  22. val CyclicInheritance : Throwable

    Definition Classes
    BaseTypeSeqs
  23. def DefDef (sym: Symbol, rhs: (List[List[Symbol]]) ⇒ Tree): DefDef

    Definition Classes
    Trees
  24. def DefDef (sym: Symbol, rhs: Tree): DefDef

    Definition Classes
    Trees
  25. def DefDef (sym: Symbol, mods: Modifiers, rhs: Tree): DefDef

    Definition Classes
    Trees
  26. def DefDef (sym: Symbol, vparamss: List[List[ValDef]], rhs: Tree): DefDef

    Definition Classes
    Trees
  27. def DefDef (sym: Symbol, mods: Modifiers, vparamss: List[List[ValDef]], rhs: Tree): DefDef

    Definition Classes
    Trees
  28. val DoubleTag : Int(9)

    Attributes
    final
    Definition Classes
    Constants
  29. object EmptyScope extends Scope

    The empty scope (immutable).

  30. lazy val EmptyTreeTypeSubstituter : TreeTypeSubstituter

    Definition Classes
    Trees
  31. val EnumTag : Int(13)

    Attributes
    final
    Definition Classes
    Constants
  32. object ErroneousCollector extends TypeCollector[Boolean]

    A map to implement the contains' method

  33. object ErrorType extends Type with Product with Serializable

    An object representing an erroneous type

  34. object ExistentialType extends ExistentialTypeExtractor with Serializable

    Definition Classes
    Types → Types
  35. val FloatTag : Int(8)

    Attributes
    final
    Definition Classes
    Constants
  36. val GlbFailure : Throwable

    Definition Classes
    Types
  37. def Ident (sym: Symbol): Ident

    Definition Classes
    Trees
  38. object IdentityTypeMap extends TypeMap

    A type map that always returns the input type unchanged

  39. val IntTag : Int(6)

    Attributes
    final
    Definition Classes
    Constants
  40. object IsDependentCollector extends TypeCollector[Boolean]

  41. def JavaMethodType (params: List[Symbol], resultType: Type): JavaMethodType

    The canonical creator for implicit method types

    The canonical creator for implicit method types

    Definition Classes
    Types
  42. val JustParsed : Int(-1)

    The status value of a unit that has not yet been typechecked

    The status value of a unit that has not yet been typechecked

    Attributes
    final
    Definition Classes
    RichCompilationUnits
  43. def LabelDef (sym: Symbol, params: List[Symbol], rhs: Tree): LabelDef

    Definition Classes
    Trees
  44. def Literal (value: Any): Literal

    Definition Classes
    Trees
  45. object LiteralAnnotArg extends LiteralAnnotArgExtractor with Serializable

    Definition Classes
    AnnotationInfos → AnnotationInfos
  46. val LongTag : Int(7)

    Attributes
    final
    Definition Classes
    Constants
  47. val LubGlbMargin : Int(0)

    Attributes
    final
    Definition Classes
    Types
  48. val MaxPhases : Int

    Definition Classes
    Global
  49. object MethodType extends MethodTypeExtractor with Serializable

    Definition Classes
    Types → Types
  50. def Modifiers (flags: Long): Modifiers

    Definition Classes
    Trees
  51. def Modifiers (flags: Long, privateWithin: Name): Modifiers

    Definition Classes
    Trees
  52. def ModuleDef (sym: Symbol, impl: Template): ModuleDef

    sym

    the class symbol

    impl

    the implementation template

    Definition Classes
    Trees
  53. object NestedAnnotArg extends NestedAnnotArgExtractor with Serializable

    Definition Classes
    AnnotationInfos → AnnotationInfos
  54. def New (tpt: Tree, argss: List[List[Tree]]): Tree

    Factory method for object creation new tpt(args_1)...(args_n) A New(t, as) is expanded to: (new t).<init>(as)

    Factory method for object creation new tpt(args_1)...(args_n) A New(t, as) is expanded to: (new t).<init>(as)

    Definition Classes
    Trees
  55. lazy val NoContext : Context

    Definition Classes
    ContextTrees
  56. lazy val NoMods : Modifiers

    Definition Classes
    Trees
  57. val NoPeriod : Int(0)

    Attributes
    final
    Definition Classes
    SymbolTable
  58. val NoPosition : tools.nsc.util.NoPosition.type

    Definition Classes
    Positions
  59. object NoPrefix extends Type with Product with Serializable

    An object representing a non-existing prefix

  60. val NoRunId : Int(0)

    Attributes
    final
    Definition Classes
    SymbolTable
  61. object NoSymbol extends Symbol

    An object representing a missing symbol

  62. val NoTag : Int(0)

    Attributes
    final
    Definition Classes
    Constants
  63. object NoType extends Type with Product with Serializable

    An object representing a non-existing type

  64. val NotLoaded : Int(-2)

    The status value of a unit that has not yet been loaded

    The status value of a unit that has not yet been loaded

    Attributes
    final
    Definition Classes
    RichCompilationUnits
  65. val NullTag : Int(11)

    Attributes
    final
    Definition Classes
    Constants
  66. object NullaryMethodType extends NullaryMethodTypeExtractor with Serializable

    Definition Classes
    Types → Types
  67. val PartiallyChecked : Int(0)

    The status value of a unit that has been partially typechecked

    The status value of a unit that has been partially typechecked

    Attributes
    final
    Definition Classes
    RichCompilationUnits
  68. object PolyType extends PolyTypeExtractor with Serializable

    Definition Classes
    Types → Types
  69. object RefinedType extends RefinedTypeExtractor with Serializable

    Definition Classes
    Types → Types
  70. def Select (qualifier: Tree, sym: Symbol): Select

    Definition Classes
    Trees
  71. val ShortTag : Int(4)

    Attributes
    final
    Definition Classes
    Constants
  72. object SingleType extends SingleTypeExtractor with Serializable

    Definition Classes
    Types → Types
  73. val StringTag : Int(10)

    Attributes
    final
    Definition Classes
    Constants
  74. object StripAnnotationsMap extends TypeMap

  75. def Super (sym: Symbol, mix: TypeName): Tree

    Definition Classes
    Trees
  76. object SuperType extends SuperTypeExtractor with Serializable

    Definition Classes
    Types → Types
  77. def Template (parents: List[Tree], self: ValDef, constrMods: Modifiers, vparamss: List[List[ValDef]], argss: List[List[Tree]], body: List[Tree], superPos: Position): Template

    Generates a template with constructor corresponding to

    Generates a template with constructor corresponding to

    constrmods (vparams1_) ... (vparams_n) preSuper { presupers } extends superclass(args_1) ... (args_n) with mixins { self => body }

    This gets translated to

    extends superclass with mixins { self => presupers' // presupers without rhs vparamss // abstract fields corresponding to value parameters def <init>(vparamss) { presupers super.<init>(args) } body }

    Definition Classes
    Trees
  78. def This (sym: Symbol): Tree

    Definition Classes
    Trees
  79. object ThisType extends ThisTypeExtractor with Serializable

    Definition Classes
    Types → Types
  80. object TypeBounds extends TypeBoundsExtractor with Serializable

    Definition Classes
    Types → Types
  81. def TypeDef (sym: Symbol): TypeDef

    A TypeDef node which defines abstract type or type parameter for given sym'

    A TypeDef node which defines abstract type or type parameter for given sym'

    Definition Classes
    Trees
  82. def TypeDef (sym: Symbol, rhs: Tree): TypeDef

    A TypeDef node which defines given sym' with given tight hand side rhs'.

    A TypeDef node which defines given sym' with given tight hand side rhs'.

    Definition Classes
    Trees
  83. object TypeRef extends TypeRefExtractor with Serializable

    Definition Classes
    Types → Types
  84. def TypeTree (tp: Type): TypeTree

    Definition Classes
    Trees
  85. object TypeTree extends TypeTreeExtractor with Serializable

    Definition Classes
    Trees → Trees
  86. object TypeVar extends AnyRef

  87. val UnitTag : Int(1)

    Attributes
    final
    Definition Classes
    Constants
  88. def ValDef (sym: Symbol): ValDef

    Definition Classes
    Trees
  89. def ValDef (sym: Symbol, rhs: Tree): ValDef

    Definition Classes
    Trees
  90. object WildcardType extends Type with Product with Serializable

    An object representing an unknown type, used during type inference.

  91. def abort (): Nothing

    Definition Classes
    SymbolTable
  92. def abort (msg: String): Nothing

    Definition Classes
    SymbolTable
  93. implicit def abstractFile : Pickler[AbstractFile]

    Attributes
    implicit
    Definition Classes
    Picklers
  94. implicit def action : Pickler[() ⇒ Unit]

    Attributes
    implicit
    Definition Classes
    Picklers
  95. def adaptAnnotations (tree: Tree, mode: Int, pt: Type): Tree

    Let registered annotation checkers adapt a tree to a given type (called by Typers.

    Let registered annotation checkers adapt a tree to a given type (called by Typers.adapt). Annotation checkers that cannot do the adaption should pass the tree through unchanged.

    Definition Classes
    AnnotationCheckers
  96. def adaptBoundsToAnnotations (bounds: List[TypeBounds], tparams: List[Symbol], targs: List[Type]): List[TypeBounds]

    Refine the bounds on type parameters to the given type arguments.

    Refine the bounds on type parameters to the given type arguments.

    Definition Classes
    AnnotationCheckers
  97. object adaptToNewRunMap extends TypeMap

  98. def addAnnotationChecker (checker: AnnotationChecker): Unit

    Register an annotation checker.

    Register an annotation checker. Typically these are added by compiler plugins.

    Definition Classes
    AnnotationCheckers
  99. def addAnnotations (tree: Tree, tpe: Type): Type

    Let all annotations checkers add extra annotations to this tree's type.

    Let all annotations checkers add extra annotations to this tree's type.

    Definition Classes
    AnnotationCheckers
  100. def addContext (contexts: Contexts, context: Context, cpos: Position): Unit

    Insert a context with non-transparent position cpos at correct position into a buffer of context trees.

    Insert a context with non-transparent position cpos at correct position into a buffer of context trees.

    Definition Classes
    ContextTrees
  101. def addContext (contexts: Contexts, context: Context): Unit

    Insert a context at correct position into a buffer of context trees.

    Insert a context at correct position into a buffer of context trees. If the context has a transparent position, add it multiple times at the positions of all its solid descendant trees.

    Definition Classes
    ContextTrees
  102. def addMember (thistp: Type, tp: Type, sym: Symbol): Unit

    Make symbol sym' a member of scope tp.

    Make symbol sym' a member of scope tp.decls' where thistp' is the narrowed owner type of the scope.

    Definition Classes
    Types
  103. implicit def addOnTypeError [T] (x: ⇒ T): OnTypeError[T]

    Attributes
    implicit
  104. def addToPhasesSet (sub: SubComponent, descr: String): Unit

    Attributes
    protected
    Definition Classes
    Global
  105. def afterPhase [T] (ph: Phase)(op: ⇒ T): T

    Attributes
    final
    Definition Classes
    SymbolTable
  106. var allSources : List[SourceFile]

    A list giving all files to be typechecked in the order they should be checked.

    A list giving all files to be typechecked in the order they should be checked.

    Attributes
    protected
  107. object analysis extends TypeFlowAnalysis

    ICode analysis for optimization

  108. object analyzer extends Analyzer

  109. def annotationsConform (tp1: Type, tp2: Type): Boolean

    Check that the annotations on two types conform.

    Check that the annotations on two types conform. To do so, consult all registered annotation checkers.

    Definition Classes
    AnnotationCheckers
  110. def annotationsGlb (tpe: Type, ts: List[Type]): Type

    Refine the computed greatest lower bound of a list of types.

    Refine the computed greatest lower bound of a list of types. All this should do is add annotations.

    Definition Classes
    AnnotationCheckers
  111. def annotationsLub (tpe: Type, ts: List[Type]): Type

    Refine the computed least upper bound of a list of types.

    Refine the computed least upper bound of a list of types. All this should do is add annotations.

    Definition Classes
    AnnotationCheckers
  112. def appliedType (tycon: Type, args: List[Type]): Type

    A creator for type applications

    A creator for type applications

    Definition Classes
    Types
  113. def asCompactString (t: Tree): String

    Definition Classes
    TreePrinters
  114. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  115. def asString (t: Tree): String

    Definition Classes
    TreePrinters
  116. def ask [A] (op: () ⇒ A): A

    Asks for a computation to be done quickly on the presentation compiler thread

    Asks for a computation to be done quickly on the presentation compiler thread

    Definition Classes
    CompilerControl
  117. def askFilesDeleted (sources: List[SourceFile], response: Response[Unit]): Unit

    Removes source files and toplevel symbols, and issues a new typer run.

    Removes source files and toplevel symbols, and issues a new typer run. Returns () to syncvar response on completion.

    Definition Classes
    CompilerControl
  118. def askLinkPos (sym: Symbol, source: SourceFile, response: Response[Position]): Unit

    Sets sync var response to the position of the definition of the given link in the given sourcefile.

    Sets sync var response to the position of the definition of the given link in the given sourcefile.

    sym

    The symbol referenced by the link (might come from a classfile)

    source

    The source file that's supposed to contain the definition

    response

    A response that will be set to the following: If source contains a definition that is referenced by the given link the position of that definition, otherwise NoPosition. Note: This operation does not automatically load source. If source is unloaded, it stays that way.

    Definition Classes
    CompilerControl
  119. implicit def askLinkPosItem : CondPickler[AskLinkPosItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  120. def askLoadedTyped (source: SourceFile, response: Response[Tree]): Unit

    If source is not yet loaded, loads it, and starts a new run, otherwise continues with current pass.

    If source is not yet loaded, loads it, and starts a new run, otherwise continues with current pass. Waits until source is fully type checked and returns body in response.

    source

    The source file that needs to be fully typed.

    response

    The response, which is set to the fully attributed tree of source. If the unit corresponding to source has been removed in the meantime the a NoSuchUnitError is raised in the response.

    Definition Classes
    CompilerControl
  121. implicit def askLoadedTypedItem : CondPickler[AskLoadedTypedItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  122. def askParsedEntered (source: SourceFile, keepLoaded: Boolean, response: Response[Tree]): Unit

    Set sync var response to the parse tree of source with all top-level symbols entered.

    Set sync var response to the parse tree of source with all top-level symbols entered.

    source

    The source file to be analyzed

    keepLoaded

    If set to true, source file will be kept as a loaded unit afterwards. If keepLoaded is false the operation is run at low priority, only after everything is brought up to date in a regular type checker run.

    response

    The response.

    Definition Classes
    CompilerControl
  123. implicit def askParsedEnteredItem : CondPickler[AskParsedEnteredItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  124. def askReload (sources: List[SourceFile], response: Response[Unit]): Unit

    Makes sure a set of compilation units is loaded and parsed.

    Makes sure a set of compilation units is loaded and parsed. Returns () to syncvar response on completion. Afterwards a new background compiler run is started with the given sources at the head of the list of to-be-compiled sources.

    Definition Classes
    CompilerControl
  125. def askReset (): Unit

    Cancels current compiler run and start a fresh one where everything will be re-typechecked (but not re-loaded).

    Cancels current compiler run and start a fresh one where everything will be re-typechecked (but not re-loaded).

    Definition Classes
    CompilerControl
  126. def askScopeCompletion (pos: Position, response: Response[List[Member]]): Unit

    Sets sync var response' to list of members that are visible as members of the scope enclosing pos.

    Sets sync var response' to list of members that are visible as members of the scope enclosing pos.

    Definition Classes
    CompilerControl
  127. implicit def askScopeCompletionItem : CondPickler[AskScopeCompletionItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  128. def askShutdown (): Unit

    Tells the compile server to shutdown, and not to restart again

    Tells the compile server to shutdown, and not to restart again

    Definition Classes
    CompilerControl
  129. def askStructure (source: SourceFile, response: Response[Tree]): Unit

    If source if not yet loaded, get an outline view with askParseEntered.

    If source if not yet loaded, get an outline view with askParseEntered. If source is loaded, wait for it to be typechecked. In both cases, set response to parsed (and possibly typechecked) tree.

    Definition Classes
    CompilerControl
  130. def askToDoFirst (source: SourceFile): Unit

    Asks to do unit corresponding to given source file on present and subsequent type checking passes

    Asks to do unit corresponding to given source file on present and subsequent type checking passes

    Definition Classes
    CompilerControl
  131. implicit def askToDoFirstItem : CondPickler[AskToDoFirstItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  132. def askType (source: SourceFile, forceReload: Boolean, response: Response[Tree]): Unit

    Sets sync var response to the fully attributed & typechecked tree contained in source.

    Sets sync var response to the fully attributed & typechecked tree contained in source.

    Definition Classes
    CompilerControl
  133. def askTypeAt (pos: Position, response: Response[Tree]): Unit

    Sets sync var response to the smallest fully attributed tree that encloses position pos.

    Sets sync var response to the smallest fully attributed tree that encloses position pos. Note: Unlike for most other ask... operations, the source file belonging to pos needs not be be loaded.

    Definition Classes
    CompilerControl
  134. implicit def askTypeAtItem : CondPickler[AskTypeAtItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  135. def askTypeCompletion (pos: Position, response: Response[List[Member]]): Unit

    Sets sync var response' to list of members that are visible as members of the tree enclosing pos, possibly reachable by an implicit.

    Sets sync var response' to list of members that are visible as members of the tree enclosing pos, possibly reachable by an implicit.

    Definition Classes
    CompilerControl
  136. implicit def askTypeCompletionItem : CondPickler[AskTypeCompletionItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  137. implicit def askTypeItem : CondPickler[AskTypeItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  138. def atPhase [T] (ph: Phase)(op: ⇒ T): T

    Perform given operation at given phase

    Perform given operation at given phase

    Attributes
    final
    Definition Classes
    SymbolTable
  139. def atPos [T <: Tree] (pos: Position)(tree: T): T

    Position a tree.

    Position a tree. This means: Set position of a node and position all its unpositioned children.

    Definition Classes
    RangePositionsTrees
  140. def backquotedPath (t: Tree): String

    Turns a path into a String, introducing backquotes as necessary.

    Turns a path into a String, introducing backquotes as necessary.

    Definition Classes
    TreePrinters
  141. def baseTypeSingletonSeq (tp: Type): BaseTypeSeq

    Create a base type sequence consisting of a single type

    Create a base type sequence consisting of a single type

    Definition Classes
    BaseTypeSeqs
  142. def beginsWithTypeVarOrIsRefined (tp: Type): Boolean

    Does this type have a prefix that begins with a type variable, or is it a refinement type? For type prefixes that fulfil this condition, type selections with the same name of equal (wrt) =:= prefixes are considered equal wrt =:=

    Does this type have a prefix that begins with a type variable, or is it a refinement type? For type prefixes that fulfil this condition, type selections with the same name of equal (wrt) =:= prefixes are considered equal wrt =:=

    Definition Classes
    Types
  143. def buildCompilerFromPhasesSet (): List[SubComponent]

    Definition Classes
    PhaseAssembly
  144. def canAdaptAnnotations (tree: Tree, mode: Int, pt: Type): Boolean

    Find out whether any annotation checker can adapt a tree to a given type.

    Find out whether any annotation checker can adapt a tree to a given type. Called by Typers.adapt.

    Definition Classes
    AnnotationCheckers
  145. def checkForMoreWork (pos: Position): Unit

    Attributes
    protected
  146. def checkKindBounds0 (tparams: List[Symbol], targs: List[Type], pre: Type, owner: Symbol, explainErrors: Boolean): List[(Type, Symbol, List[(Symbol, Symbol)], List[(Symbol, Symbol)], List[(Symbol, Symbol)])]

    Check well-kindedness of type application (assumes arities are already checked) -- @M

    Check well-kindedness of type application (assumes arities are already checked) -- @M

    This check is also performed when abstract type members become concrete (aka a "type alias") -- then tparams.length==1 (checked one type member at a time -- in that case, prefix is the name of the type alias)

    Type application is just like value application: it's "contravariant" in the sense that the type parameters of the supplied type arguments must conform to the type parameters of the required type parameters:

    • their bounds must be less strict
    • variances must match (here, variances are absolute, the variance of a type parameter does not influence the variance of its higher-order parameters)
    • @M TODO: are these conditions correct,sufficient&necessary?

    e.g. class Iterable[t, m[+x <: t]] --> the application Iterable[Int, List] is okay, since List's type parameter is also covariant and its bounds are weaker than <: Int

    Definition Classes
    Types
  147. def checkNoResponsesOutstanding (): Unit

  148. var chrs : Array[Char]

    memory to store all names sequentially

    memory to store all names sequentially

    Definition Classes
    Names
  149. def classPath : scala.tools.nsc.util.ClassPath[_]

    Definition Classes
    Global
  150. lazy val classfileAnnotArgManifest : ClassManifest[ClassfileAnnotArg]

    Definition Classes
    AnnotationInfos → AnnotationInfos
  151. object cleanup extends CleanUp

  152. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  153. def cloneSymbols [T <: Symbol] (syms: List[T], owner: Symbol): List[T]

    Definition Classes
    Symbols
  154. def cloneSymbols [T <: Symbol] (syms: List[T]): List[T]

    Definition Classes
    Symbols
  155. object closureElimination extends ClosureElimination

  156. object commonOwnerMap extends TypeMap

    A map to compute the most deeply nested owner that contains all the symbols of thistype or prefixless typerefs/singletype occurrences in given type.

  157. def compareLengths (xs1: List[_], xs2: List[_]): Int

    Attributes
    final
    Definition Classes
    Types
    Annotations
    @tailrec()
  158. def compoundBaseTypeSeq (tp: Type): BaseTypeSeq

    Create the base type sequence of a compound type wuth given tp.

    Create the base type sequence of a compound type wuth given tp.parents

    Definition Classes
    BaseTypeSeqs
  159. def computeInternalPhases (): Unit

    Add the internal compiler phases to the phases set.

    Add the internal compiler phases to the phases set. This implementation creates a description map at the same time.

    Attributes
    protected
    Definition Classes
    Global
  160. def computePhaseDescriptors : List[SubComponent]

    Attributes
    protected
    Definition Classes
    Global
  161. def computePlatformPhases (): Unit

    Attributes
    protected
    Definition Classes
    Global
  162. def computePluginPhases (): Unit

    Extract all phases supplied by plugins and add them to the phasesSet.

    Extract all phases supplied by plugins and add them to the phasesSet.

    Attributes
    protected
    Definition Classes
    Plugins
    See also

    phasesSet

  163. object constfold extends ConstantFolder

    Fold constants

  164. object constructors extends Constructors

  165. val containsContravariantExistentialCollector : ContainsVariantExistentialCollector

    Definition Classes
    Types
  166. val containsCovariantExistentialCollector : ContainsVariantExistentialCollector

    Definition Classes
    Types
  167. def cookedDocComment (sym: Symbol, docStr: String = ""): String

    The raw doc comment of symbol sym, minus @usecase and @define sections, augmented by missing sections of an inherited doc comment.

    The raw doc comment of symbol sym, minus @usecase and @define sections, augmented by missing sections of an inherited doc comment. If a symbol does not have a doc comment but some overridden version of it does, the doc comment of the overridden version is copied instead.

    Definition Classes
    DocComments
  168. def copyMethodType (tp: Type, params: List[Symbol], restpe: Type): Type

    Create a new MethodType of the same class as tp, i.

    Create a new MethodType of the same class as tp, i.e. keep JavaMethodType

    Definition Classes
    Types
  169. object copyPropagation extends CopyPropagation

    Copy propagation for optimization

  170. def copyRefinedType (original: RefinedType, parents: List[Type], decls: Scope): Type

    Definition Classes
    Types
  171. def copyTypeRef (tp: Type, pre: Type, sym: Symbol, args: List[Type]): Type

    Definition Classes
    Types
  172. def corresponds3 [A, B, C] (xs1: List[A], xs2: List[B], xs3: List[C], f: (A, B, C) ⇒ Boolean): Boolean

    True if all three arguments have the same number of elements and the function is true for all the triples.

    True if all three arguments have the same number of elements and the function is true for all the triples.

    Attributes
    final
    Definition Classes
    Types
    Annotations
    @tailrec()
  173. def createJavadoc : Boolean

    Definition Classes
    Global
  174. def currentPeriod : Period

    The current period

    The current period

    Attributes
    final
    Definition Classes
    SymbolTable
  175. def currentRun : Run

    The currently active run

    The currently active run

    Definition Classes
    Global
  176. def currentRunId : Int

    The id of the currently active run

    The id of the currently active run

    Definition Classes
    GlobalSymbolTable
  177. object deAlias extends TypeMap

    Remove any occurrences of type aliases from this type

  178. object deadCode extends DeadCodeElimination

  179. val debugIDE : Boolean

  180. def debugInfo (source: SourceFile, start: Int, length: Int): String

  181. def debugLog (msg: ⇒ String): Unit

    Print msg only when debugIDE is true.

    Print msg only when debugIDE is true.

    Attributes
    final
    Annotations
    @inline()
  182. def debugString (tp: Type): String

    Definition Classes
    TypeDebugging
  183. def defaultThrowable [T <: Throwable] : CondPickler[T]

    Definition Classes
    Picklers
  184. object definitions extends AbsDefinitions with ValueClassDefinitions

    Definition Classes
    Definitions → StandardDefinitions
  185. val deletedTopLevelSyms : LinkedHashSet[Symbol] with SynchronizedSet[Symbol]

    The top level classes and objects no longer seen in the presentation compiler

  186. def delta (f: AbstractFile, cs: Array[Char]): ()

    Definition Classes
    Picklers
  187. def demandNewCompilerRun (): Unit

  188. object dependencyAnalysis extends SubComponent with DependencyAnalysis

  189. def differentOrNone (tp1: Type, tp2: Type): Type

    Definition Classes
    Types
  190. def doLocateContext (pos: Position): Context

    Returns the smallest context that contains given pos, throws FatalError if none exists.

    Returns the smallest context that contains given pos, throws FatalError if none exists.

    Definition Classes
    CompilerControl
  191. def docComment (sym: Symbol, docStr: String, pos: Position = NoPosition): Any

    Associate comment with symbol sym at position pos.

    Associate comment with symbol sym at position pos.

    Definition Classes
    DocComments
  192. def docCommentPos (sym: Symbol): Position

    The position of the raw doc comment of symbol sym, or NoPosition if missing If a symbol does not have a doc comment but some overridden version of it does, the position of the doc comment of the overridden version is returned instead.

    The position of the raw doc comment of symbol sym, or NoPosition if missing If a symbol does not have a doc comment but some overridden version of it does, the position of the doc comment of the overridden version is returned instead.

    Definition Classes
    DocComments
  193. val docComments : HashMap[Symbol, DocComment]

    The raw doc comment map

    The raw doc comment map

    Definition Classes
    DocComments
  194. object dropSingletonType extends TypeMap

    Remove any occurrence of type <singleton> from this type and its parents

  195. def echoPhaseSummary (ph: Phase): Unit

    Definition Classes
    Global
  196. def elimAnonymousClass (t: Type): Type

    Definition Classes
    Types
  197. implicit def emptyAction : CondPickler[EmptyAction]

    Attributes
    implicit
    Definition Classes
    Picklers
  198. val emptySymbolArray : Array[Symbol]

    Definition Classes
    Symbols
  199. object emptyValDef extends ValDef

  200. def encode (str: String): TermName

    Definition Classes
    StdNames
  201. def ensureNonOverlapping (tree: Tree, others: List[Tree]): Unit

    Ensure that given tree has no positions that overlap with any of the positions of others.

    Ensure that given tree has no positions that overlap with any of the positions of others. This is done by shortening the range or assigning TransparentPositions to some of the nodes in tree.

    Definition Classes
    RangePositionsPositions
  202. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  203. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  204. object erasure extends Erasure

  205. def error (msg: String): Unit

    Definition Classes
    Global
  206. def existentialAbstraction (tparams: List[Symbol], tpe0: Type): Type

    A creator for existential types.

    A creator for existential types. This generates:

    tpe1 where { tparams }

    where tpe1' is the result of extrapolating tpe' wrt to tparams'. Extrapolating means that type variables in tparams' occurring in covariant positions are replaced by upper bounds, (minus any SingletonClass markers), type variables in tparams' occurring in contravariant positions are replaced by upper bounds, provided the resulting type is legal wrt to stability, and does not contain any type variable in tparams'. The abstraction drops all type parameters that are not directly or indirectly referenced by type tpe1'. If there are no remaining type parameters, simply returns result type tpe'.

    Definition Classes
    Types
  207. def expandVariables (initialStr: String, sym: Symbol, site: Symbol): String

    Expand variable occurrences in string str', until a fix point is reached or a expandLimit is exceeded.

    Expand variable occurrences in string str', until a fix point is reached or a expandLimit is exceeded.

    sym

    The symbol for which doc comments are generated

    site

    The class for which doc comments are generated

    returns

    Expanded string

    Attributes
    protected
    Definition Classes
    DocComments
  208. def expandWiki (str: String): String

    Returns just the wiki expansion (this would correspond to a comment in the input format of the JavaDoc tool, modulo differences in tags.

    Returns just the wiki expansion (this would correspond to a comment in the input format of the JavaDoc tool, modulo differences in tags.)

    Definition Classes
    DocComments
  209. def expandedDocComment (sym: Symbol): String

    The cooked doc comment of symbol sym after variable expansion, or "" if missing.

    The cooked doc comment of symbol sym after variable expansion, or "" if missing.

    sym

    The symbol for which doc comment is returned (site is always the containing class)

    Definition Classes
    DocComments
  210. def expandedDocComment (sym: Symbol, site: Symbol, docStr: String = ""): String

    The cooked doc comment of symbol sym after variable expansion, or "" if missing.

    The cooked doc comment of symbol sym after variable expansion, or "" if missing.

    sym

    The symbol for which doc comment is returned

    site

    The class for which doc comments are generated

    Definition Classes
    DocComments
  211. def explainTypes (op: (Type, Type) ⇒ Any, found: Type, required: Type): Unit

    If option explaintypes' is set, print a subtype trace for op(found, required)'.

    If option explaintypes' is set, print a subtype trace for op(found, required)'.

    Definition Classes
    Types
  212. def explainTypes (found: Type, required: Type): Unit

    If option explaintypes' is set, print a subtype trace for found <:< required'.

    If option explaintypes' is set, print a subtype trace for found <:< required'.

    Definition Classes
    Types
  213. object explicitOuter extends ExplicitOuter

  214. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  215. def findOverlapping (cts: List[Tree]): List[(Tree, Tree)]

    Does given list of trees have mutually non-overlapping positions? pre: None of the trees is transparent

    Does given list of trees have mutually non-overlapping positions? pre: None of the trees is transparent

    Definition Classes
    RangePositions
  216. def flagsIntoString (flags: Long, privateWithin: String): String

    Attributes
    protected
    Definition Classes
    Trees → Trees
  217. object flatten extends Flatten

  218. def forInteractive : Boolean

    Definition Classes
    GlobalGlobal
  219. def forJVM : Boolean

    Are we compiling for Java SE ?

    Are we compiling for Java SE ?

    Definition Classes
    GlobalSymbolTable
  220. def forMSIL : Boolean

    Are we compiling for .

    Are we compiling for .NET ?

    Definition Classes
    GlobalSymbolTable
  221. def forScaladoc : Boolean

    Definition Classes
    Global
  222. lazy val freshRunReq : CondPickler[FreshRunReq]

    Definition Classes
    Picklers
  223. object gen extends TreeGen

    Generate ASTs

  224. object genJVM extends GenJVM

  225. object genicode extends GenICode

  226. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  227. def getFile (clazz: Symbol, suffix: String): File

    Returns the file with the given suffix for the given class.

    Returns the file with the given suffix for the given class. Used for icode writing.

    Definition Classes
    Global
  228. def getOrCreateUnitOf (source: SourceFile): RichCompilationUnit

    The compilation unit corresponding to a source file if it does not yet exist create a new one atomically Note: We want to remove this.

    The compilation unit corresponding to a source file if it does not yet exist create a new one atomically Note: We want to remove this.

    Attributes
    protected[interactive]
  229. var getParsedEnteredResponses : ResponseMap

    A map that associates with each abstract file the set of responses that ware waiting (via build) for the unit associated with the abstract file to be parsed and entered

    A map that associates with each abstract file the set of responses that ware waiting (via build) for the unit associated with the abstract file to be parsed and entered

    Attributes
    protected
  230. def getSourceFile (name: String): SourceFile

    Definition Classes
    Global
  231. def getSourceFile (f: AbstractFile): BatchSourceFile

    Definition Classes
    Global
  232. def getUnit (s: SourceFile): Option[RichCompilationUnit]

    Work through toBeRemoved list to remove any units.

    Work through toBeRemoved list to remove any units. Then return optionally unit associated with given source.

    Attributes
    protected[interactive]
  233. def getUnitOf (s: SourceFile): Option[RichCompilationUnit]

    Return the compilation unit attached to a source file, or None if source is not loaded.

    Return the compilation unit attached to a source file, or None if source is not loaded.

    Definition Classes
    CompilerControl
  234. def glb (ts: List[Type]): Type

    Definition Classes
    Types
  235. def globalError (msg: String): Unit

    Definition Classes
    Global
  236. var globalPhase : Phase

    Definition Classes
    Global
  237. def hasLength (xs: List[_], len: Int): Boolean

    Again avoiding calling length, but the lengthCompare interface is clunky.

    Again avoiding calling length, but the lengthCompare interface is clunky.

    Attributes
    final
    Definition Classes
    Types
  238. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  239. object icodeChecker extends ICodeChecker

  240. object icodeCheckers extends ICodeCheckers

    Icode verification

  241. object icodes extends ICodes

    ICode generator

  242. var infoTransformers : InfoTransformer

    The set of all installed infotransformers

    The set of all installed infotransformers

    Definition Classes
    SymbolTable
  243. def inform [T] (msg: String, value: T): T

    Definition Classes
    Global
  244. def inform (msg: String): Unit

    Definition Classes
    Global
  245. def informComplete (msg: String): Unit

    Definition Classes
    Global
  246. def informIDE (msg: ⇒ String): Unit

    Inform with msg only when verboseIDE is true.

    Inform with msg only when verboseIDE is true.

    Attributes
    final
    Annotations
    @inline()
  247. def informProgress (msg: String): Unit

    Definition Classes
    Global
  248. def informTime (msg: String, start: Long): Unit

    Definition Classes
    Global
  249. object inliner extends Inliners

  250. def instTypeVar (tp: Type): Type

    Definition Classes
    Types
  251. def instantiatedBounds (pre: Type, owner: Symbol, tparams: List[Symbol], targs: List[Type]): List[TypeBounds]

    Definition Classes
    Types
  252. implicit def interruptReq : Pickler[InterruptReq]

    Attributes
    implicit
    Definition Classes
    Picklers
  253. def intersectionType (tps: List[Type]): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself.

    A creator for intersection type where intersections of a single type are replaced by the type itself.

    Definition Classes
    Types
  254. def intersectionType (tps: List[Type], owner: Symbol): Type

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    A creator for intersection type where intersections of a single type are replaced by the type itself, and repeated parent classes are merged.

    Definition Classes
    Types
  255. val intersectionWitness : WeakHashMap[List[Type], WeakReference[Type]]

    A map from lists to compound types that have the given list as parents.

    A map from lists to compound types that have the given list as parents. This is used to avoid duplication in the computation of base type sequences and baseClasses. It makes use of the fact that these two operations depend only on the parents, not on the refinement.

    Definition Classes
    Types
  256. def isConstantType (tp: Type): Boolean

    Definition Classes
    Types
  257. def isDifferentType (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  258. def isDifferentTypeConstructor (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  259. def isErrorOrWildcard (tp: Type): Boolean

    Definition Classes
    Types
  260. def isHKSubType0 (tp1: Type, tp2: Type, depth: Int): Boolean

    Definition Classes
    Types
  261. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  262. def isNumericSubType (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  263. def isOutOfDate : Boolean

  264. def isPopulated (tp1: Type, tp2: Type): Boolean

    Is intersection of given types populated? That is, for all types tp1, tp2 in intersection for all common base classes bc of tp1 and tp2 let bt1, bt2 be the base types of tp1, tp2 relative to class bc Then: bt1 and bt2 have the same prefix, and any corresponding non-variant type arguments of bt1 and bt2 are the same

    Is intersection of given types populated? That is, for all types tp1, tp2 in intersection for all common base classes bc of tp1 and tp2 let bt1, bt2 be the base types of tp1, tp2 relative to class bc Then: bt1 and bt2 have the same prefix, and any corresponding non-variant type arguments of bt1 and bt2 are the same

    Definition Classes
    Types
  265. def isRaw (sym: Symbol, args: List[Type]): Boolean

    Definition Classes
    Types
  266. def isRawType (tp: Type): Boolean

    Is type tp a raw type?

    Is type tp a raw type?

    Definition Classes
    Types
  267. def isSameType (tp1: Type, tp2: Type): Boolean

    Do tp1' and tp2' denote equivalent types?

    Do tp1' and tp2' denote equivalent types?

    Definition Classes
    Types
  268. def isSameType2 (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  269. def isSameTypes (tps1: List[Type], tps2: List[Type]): Boolean

    Are tps1' and tps2' lists of pairwise equivalent types?

    Are tps1' and tps2' lists of pairwise equivalent types?

    Definition Classes
    Types
  270. def isScriptRun : Boolean

    Definition Classes
    Global
  271. def isSingleType (tp: Type): Boolean

    Definition Classes
    Types
  272. def isSubArg (t1: Type, t2: Type, variance: Int): Boolean

    Definition Classes
    Types
  273. def isSubArgs (tps1: List[Type], tps2: List[Type], tparams: List[Symbol]): Boolean

    Definition Classes
    Types
  274. def isSubType (tp1: Type, tp2: Type, depth: Int): Boolean

    Definition Classes
    Types
  275. def isSubType (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  276. def isSubTypes (tps1: List[Type], tps2: List[Type]): Boolean

    Are tps1' and tps2' lists of equal length such that all elements of tps1' conform to corresponding elements of tps2'?

    Are tps1' and tps2' lists of equal length such that all elements of tps1' conform to corresponding elements of tps2'?

    Definition Classes
    Types
  277. def isTermName (name: Name): Boolean

    Definition Classes
    Names → Names
  278. def isTypeName (name: Name): Boolean

    Definition Classes
    Names → Names
  279. def isValid (period: Period): Boolean

    Attributes
    final
    Definition Classes
    SymbolTable
  280. def isValidForBaseClasses (period: Period): Boolean

    Attributes
    final
    Definition Classes
    SymbolTable
  281. def isWeakSubType (tp1: Type, tp2: Type): Boolean

    Definition Classes
    Types
  282. def isWithinBounds (pre: Type, owner: Symbol, tparams: List[Symbol], targs: List[Type]): Boolean

    Do type arguments targs' conform to formal parameters tparams'?

    Do type arguments targs' conform to formal parameters tparams'?

    tparams

    ...

    targs

    ...

    returns

    ...

    Definition Classes
    Types
  283. val javanme : JavaKeywords

    Definition Classes
    StdNames
  284. def kindsConform (tparams: List[Symbol], targs: List[Type], pre: Type, owner: Symbol): Boolean

    Definition Classes
    Types
  285. object lambdaLift extends LambdaLift

  286. object lazyVals extends LazyVals

  287. object liftcode extends LiftCode

  288. def loadPlugins (): List[Plugin]

    Load all available plugins.

    Load all available plugins. Skips plugins that either have the same name as another one, or which define a phase name that another one does.

    Attributes
    protected
    Definition Classes
    Plugins
  289. def loadRoughPluginsList (): List[Plugin]

    Load a rough list of the plugins.

    Load a rough list of the plugins. For speed, it does not instantiate a compiler run. Therefore it cannot test for same-named phases or other problems that are filtered from the final list of plugins.

    Attributes
    protected
    Definition Classes
    Plugins
  290. lazy val loaders : BrowsingLoaders { val global: Global.this.type }

    Symbol loaders in the IDE parse all source files loaded from a package for top-level idents.

    Symbol loaders in the IDE parse all source files loaded from a package for top-level idents. Therefore, we can detect top-level symbols that have a name different from their source file

    Definition Classes
    GlobalGlobal
  291. def locateContext (contexts: Contexts, pos: Position): Option[Context]

    Optionally returns the smallest context that contains given pos, or None if none exists.

    Optionally returns the smallest context that contains given pos, or None if none exists.

    Definition Classes
    ContextTrees
  292. def locateContext (pos: Position): Option[Context]

    Locates smallest context that encloses position as an optional value.

    Locates smallest context that encloses position as an optional value.

    Definition Classes
    CompilerControl
  293. def locateContextTree (contexts: Contexts, pos: Position): Option[ContextTree]

    Definition Classes
    ContextTrees
  294. def locateTree (pos: Position): Tree

    Locate smallest tree that encloses position

    Locate smallest tree that encloses position

    Definition Classes
    CompilerControl
  295. def log (msg: ⇒ AnyRef): Unit

    Attributes
    final
    Definition Classes
    GlobalSymbolTable
    Annotations
    @inline()
  296. val log : LogReplay

  297. def logError (msg: String, t: Throwable): Unit

    Definition Classes
    Global
  298. def logThrowable (t: Throwable): Unit

    Definition Classes
    Global
  299. def lookupVariable (vble: String, site: Symbol): Option[String]

    Lookup definition of variable.

    Lookup definition of variable.

    vble

    The variable for which a definition is searched

    site

    The class for which doc comments are generated

    Definition Classes
    DocComments
  300. def lub (ts: List[Type], depth: Int): Type

    The least upper bound wrt <:< of a list of types

    The least upper bound wrt <:< of a list of types

    Definition Classes
    Types
  301. def lub (ts: List[Type]): Type

    Definition Classes
    Types
  302. def lubDepth (ts: List[Type]): Int

    The maximum allowable depth of lubs or glbs over types ts' This is the maximum depth of all types in the base type sequences of each of the types ts', plus LubGlbMargin

    The maximum allowable depth of lubs or glbs over types ts' This is the maximum depth of all types in the base type sequences of each of the types ts', plus LubGlbMargin

    Definition Classes
    Types
  303. def map2Conserve [A <: AnyRef, B] (xs: List[A], ys: List[B])(f: (A, B) ⇒ A): List[A]

    like map2, but returns list xs' itself - instead of a copy - if function f' maps all elements to themselves.

    like map2, but returns list xs' itself - instead of a copy - if function f' maps all elements to themselves.

    Definition Classes
    Types
  304. def matchesType (tp1: Type, tp2: Type, alwaysMatchSimple: Boolean): Boolean

    A function implementing tp1' matches tp2'

    A function implementing tp1' matches tp2'

    Attributes
    final
    Definition Classes
    Types
  305. val maxTostringRecursions : Int(50)

    Attributes
    final
    Definition Classes
    Types
  306. def merge (src: String, dst: String, sym: Symbol, copyFirstPara: Boolean = false): String

    Merge elements of doccomment src into doc comment dst for symbol sym.

    Merge elements of doccomment src into doc comment dst for symbol sym. In detail:

    1. If copyFirstPara is true, copy first paragraph 2. For all parameters of sym if there is no @param section in dst for that parameter name, but there is one on src, copy that section. 3. If there is no @return section in dst but there is one in src, copy it.
    Definition Classes
    DocComments
  307. def mergePrefixAndArgs (tps: List[Type], variance: Int, depth: Int): Option[Type]

    Compute lub (if variance == 1) or glb (if variance == -1) of given list of types tps'. All types in tps' are typerefs or singletypes with the same symbol.

    Compute lub (if variance == 1) or glb (if variance == -1) of given list of types tps'. All types in tps' are typerefs or singletypes with the same symbol. Return Some(x)' if the computation succeeds with result x'. Return None' if the computation fails.

    Definition Classes
    Types
  308. var minRunId : Int

    Attributes
    protected[interactive]
  309. val missingAliasException : MissingAliasControl

    Definition Classes
    Types
  310. object mixer extends Mixin

  311. def mkTermName (name: Name): TermName

    Definition Classes
    Names → Names
  312. def mkTypeName (name: Name): TypeName

    Definition Classes
    Names → Names
  313. def moveToFront (fs: List[SourceFile]): Unit

    Move list of files to front of allSources

  314. def nameChars : Array[Char]

    Definition Classes
    Names
  315. val nameDebug : Boolean(false)

    Attributes
    final
    Definition Classes
    Names
  316. implicit lazy val namePickler : Pickler[Name]

    Attributes
    implicit
    Definition Classes
    Picklers
  317. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  318. def needsOuterTest (patType: Type, selType: Type, currentOwner: Symbol): Boolean

    Does a pattern of type patType' need an outer test when executed against selector type selType' in context defined by currentOwner'?

    Does a pattern of type patType' need an outer test when executed against selector type selType' in context defined by currentOwner'?

    Definition Classes
    Types
  319. def newCompactTreePrinter (): CompactTreePrinter

    Definition Classes
    TreePrinters
  320. def newCompactTreePrinter (stream: OutputStream): CompactTreePrinter

    Definition Classes
    TreePrinters
  321. def newCompactTreePrinter (writer: PrintWriter): CompactTreePrinter

    Definition Classes
    TreePrinters
  322. def newScope : Scope

    Definition Classes
    Scopes
  323. def newStandardTreePrinter (): TreePrinter

    Definition Classes
    TreePrinters
  324. def newStandardTreePrinter (stream: OutputStream): TreePrinter

    Definition Classes
    TreePrinters
  325. def newStandardTreePrinter (writer: PrintWriter): TreePrinter

    Definition Classes
    TreePrinters
  326. def newTermName (bs: Array[Byte], offset: Int, len: Int): TermName

    Create a term name from the UTF8 encoded bytes in bs[offset.

    Create a term name from the UTF8 encoded bytes in bs[offset..offset+len-1].

    Definition Classes
    Names → Names
  327. def newTermName (s: String): TermName

    create a term name from string

    create a term name from string

    Definition Classes
    Names → Names
  328. def newTermName (cs: Array[Char], offset: Int, len: Int): TermName

    Create a term name from the characters in cs[offset.

    Create a term name from the characters in cs[offset..offset+len-1].

    Definition Classes
    Names → Names
  329. def newTreePrinter (): TreePrinter

    Definition Classes
    TreePrinters
  330. def newTreePrinter (stream: OutputStream): TreePrinter

    Definition Classes
    TreePrinters
  331. def newTreePrinter (writer: PrintWriter): TreePrinter

    Definition Classes
    TreePrinters
  332. def newTypeName (bs: Array[Byte], offset: Int, len: Int): TypeName

    Create a type name from the UTF8 encoded bytes in bs[offset.

    Create a type name from the UTF8 encoded bytes in bs[offset..offset+len-1].

    Definition Classes
    Names → Names
  333. def newTypeName (s: String): TypeName

    Create a type name from string

    Create a type name from string

    Definition Classes
    Names → Names
  334. def newTypeName (cs: Array[Char], offset: Int, len: Int): TypeName

    Create a type name from the characters in cs[offset.

    Create a type name from the characters in cs[offset..offset+len-1].

    Definition Classes
    Names → Names
  335. def newTyperRun (): Unit

  336. object nme extends CompilerTermNames with LibraryTermNames with TermNameMangling

    Definition Classes
    StdNames → StdNames
  337. lazy val noPosition : CondPickler[tools.nsc.util.NoPosition.type]

    Definition Classes
    Picklers
  338. object nodePrinters extends NodePrinters

    Print tree in detailed form

  339. val nodeToString : Global.this.nodePrinters.nodeToString.type

    Definition Classes
    Global
  340. def normalizePlus (tp: Type): Type

    Definition Classes
    Types
  341. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  342. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  343. def numericGlb (ts: List[Type]): Type

    Definition Classes
    Types
  344. def numericLub (ts: List[Type]): Type

    Definition Classes
    Types
  345. def objToAny (tp: Type): Type

    Definition Classes
    Types
  346. lazy val offsetPosition : CondPickler[OffsetPosition]

    Definition Classes
    Picklers
  347. def onCompilerThread : Boolean

    Definition Classes
    CompilerControl
  348. def onUnitOf [T] (source: SourceFile)(op: (RichCompilationUnit) ⇒ T): T

    Run operation op on a compilation unit associated with given source.

    Run operation op on a compilation unit associated with given source. If source has a loaded compilation unit, this one is passed to op. Otherwise a new compilation unit is created, but not added to the set of loaded units.

    Definition Classes
    CompilerControl
  349. object opt extends AestheticSettings

  350. val originalOwner : HashMap[Symbol, Symbol]

    The original owner of a class.

    The original owner of a class. Used by the backend to generate EnclosingMethod attributes.

    Definition Classes
    Symbols
  351. object overridingPairs extends OverridingPairs

    Computing pairs of overriding/overridden symbols

  352. def paramString (tp: Type): String

    Definition Classes
    TypeDebugging
  353. def parseTree (source: SourceFile): Tree

    Returns parse tree for source source.

    Returns parse tree for source source. No symbols are entered. Syntax errors are reported. Can be called asynchronously from presentation compiler.

    Definition Classes
    CompilerControl
  354. def patch (f: AbstractFile, d: ()): Array[Char]

    Definition Classes
    Picklers
  355. def period (rid: RunId, pid: Int): Period

    Attributes
    final
    Definition Classes
    SymbolTable
  356. def phase : Phase

    Attributes
    final
    Definition Classes
    SymbolTable
  357. def phaseDescriptions : String

    A description of the phases that will run

    A description of the phases that will run

    Definition Classes
    Global
  358. lazy val phaseDescriptors : List[SubComponent]

    Definition Classes
    Global
  359. def phaseId (period: Period): Int

    The phase identifier of the given period

    The phase identifier of the given period

    Attributes
    final
    Definition Classes
    SymbolTable
  360. lazy val phaseNames : List[String]

    The names of the phases.

    The names of the phases.

    Definition Classes
    Global
  361. def phaseOf (period: Period): Phase

    The phase associated with given period

    The phase associated with given period

    Attributes
    final
    Definition Classes
    SymbolTable
  362. val phaseWithId : Array[Phase]

    The phase which has given index as identifier

    The phase which has given index as identifier

    Definition Classes
    GlobalSymbolTable
  363. def phase_= (p: Phase): Unit

    Attributes
    final
    Definition Classes
    SymbolTable
  364. lazy val phasesDescMap : Map[SubComponent, String]

    Attributes
    protected
    Definition Classes
    Global
  365. lazy val phasesSet : HashSet[SubComponent]

    Attributes
    protected
    Definition Classes
    Global
  366. object pickler extends Pickler

  367. lazy val platform : ThisPlatform

    Definition Classes
    Global
  368. def pluginDescriptions : String

    A description of all the plugins that are loaded

    A description of all the plugins that are loaded

    Definition Classes
    Plugins
  369. def pluginOptionsHelp : String

    Summary of the options for all loaded plugins

    Summary of the options for all loaded plugins

    Definition Classes
    Plugins
  370. lazy val plugins : List[Plugin]

    Definition Classes
    Plugins
  371. def polyType (tparams: List[Symbol], tpe: Type): Type

    A creator for type parameterizations that strips empty type parameter lists.

    A creator for type parameterizations that strips empty type parameter lists. Use this factory method to indicate the type has kind * (it's a polymorphic value) until we start tracking explicit kinds equivalent to typeFun (except that the latter requires tparams nonEmpty)

    Definition Classes
    Types
  372. object posAssigner extends Traverser

  373. implicit lazy val position : Pickler[Position]

    Attributes
    implicit
    Definition Classes
    Picklers
  374. def printAllUnits (): Unit

    Definition Classes
    Global
  375. var printInfers : Boolean

    Definition Classes
    Global
  376. var printTypings : Boolean

    Switch to turn on detailed type logs

    Switch to turn on detailed type logs

    Definition Classes
    Global
  377. implicit def promoteTermNamesAsNecessary (name: Name): TermName

    Attributes
    implicit
    Definition Classes
    Names
  378. def quotedName (name: Name): String

    Definition Classes
    TreePrinters
  379. def quotedName (name: Name, decode: Boolean): String

    Adds backticks if the name is a scala keyword.

    Adds backticks if the name is a scala keyword.

    Definition Classes
    TreePrinters
  380. def rangePos (source: SourceFile, start: Int, point: Int, end: Int): RangePosition

    Definition Classes
    RangePositionsPositions
  381. lazy val rangePosition : CondPickler[RangePosition]

    Definition Classes
    Picklers
  382. def rawDocComment (sym: Symbol): String

    The raw doc comment of symbol sym, as it appears in the source text, "" if missing.

    The raw doc comment of symbol sym, as it appears in the source text, "" if missing.

    Definition Classes
    DocComments
  383. object rawToExistential extends TypeMap

    The raw to existential map converts a raw type to an existential type. It is necessary because we might have read a raw type of a parameterized Java class from a class file. At the time we read the type the corresponding class file might still not be read, so we do not know what the type parameters of the type are. Therefore the conversion of raw types to existential types might not have taken place in ClassFileparser.sigToType (where it is usually done)

  384. def recentlyDeleted (): List[Symbol]

    Returns the top level classes and objects that were deleted in the editor since last time recentlyDeleted() was called.

    Returns the top level classes and objects that were deleted in the editor since last time recentlyDeleted() was called.

    Definition Classes
    CompilerControl
  385. object refchecks extends RefChecks

  386. def refinedType (parents: List[Type], owner: Symbol): Type

    The canonical creator for a refined type with an initially empty scope.

    The canonical creator for a refined type with an initially empty scope.

    parents

    ...

    owner

    ...

    returns

    ...

    Definition Classes
    Types
  387. def refinedType (parents: List[Type], owner: Symbol, decls: Scope, pos: Position): Type

    the canonical creator for a refined type with a given scope

    the canonical creator for a refined type with a given scope

    Definition Classes
    Types
  388. def registerContext (c: Context): Unit

    Called from typechecker every time a context is created.

    Called from typechecker every time a context is created. Registers the context in a context tree

    Definition Classes
    GlobalGlobal
  389. def registerTopLevelSym (sym: Symbol): Unit

    Called from typechecker every time a top-level class or object is entered.

    Called from typechecker every time a top-level class or object is entered.

    Definition Classes
    GlobalGlobal
  390. implicit def reloadItem : CondPickler[ReloadItem]

    Attributes
    implicit
    Definition Classes
    Picklers
  391. def removeAllAnnotationCheckers (): Unit

    Remove all annotation checkers

    Remove all annotation checkers

    Definition Classes
    AnnotationCheckers
  392. def removeUnitOf (s: SourceFile): Option[RichCompilationUnit]

    Removes the CompilationUnit corresponding to the given SourceFile from consideration for recompilation.

    Removes the CompilationUnit corresponding to the given SourceFile from consideration for recompilation.

    Definition Classes
    CompilerControl
  393. def resetAllAttrs [A <: Tree] (x: A): A

    resets symbol and tpe fields in a tree, @see ResetAttrsTraverse

    resets symbol and tpe fields in a tree, @see ResetAttrsTraverse

    Definition Classes
    Trees
  394. def resetLocalAttrs [A <: Tree] (x: A): A

    Definition Classes
    Trees
  395. object resetPos extends Traverser

  396. def respond [T] (result: Response[T])(op: ⇒ T): Unit

  397. def respondGradually [T] (response: Response[T])(op: ⇒ Stream[T]): Unit

  398. def rootLoader : LazyType

    Definition Classes
    GlobalSymbolTable
  399. lazy val roughPluginsList : List[Plugin]

    Attributes
    protected
    Definition Classes
    Plugins
  400. def runId (period: Period): RunId

    The run identifier of the given period

    The run identifier of the given period

    Attributes
    final
    Definition Classes
    SymbolTable
  401. def sameLength (xs1: List[_], xs2: List[_]): Boolean

    True if two lists have the same length.

    True if two lists have the same length. Since calling length on linear sequences is O(n), it is an inadvisable way to test length equality.

    Attributes
    final
    Definition Classes
    Types
  402. object sampleTransform extends SampleTransform

  403. object scalaPrimitives extends ScalaPrimitives

    Scala primitives, used in genicode

  404. val scheduler : WorkScheduler

    The scheduler by which client and compiler communicate Must be initialized before starting compilerRunner

    The scheduler by which client and compiler communicate Must be initialized before starting compilerRunner

    Attributes
    protected[interactive]
    Definition Classes
    CompilerControl
  405. val shorthands : Set[String]

    Definition Classes
    Types
  406. def showDef (fullName: Name, declsOnly: Boolean, ph: Phase): Unit

    We resolve the class/object ambiguity by passing a type/term name.

    We resolve the class/object ambiguity by passing a type/term name.

    Definition Classes
    Global
  407. val showOuterTests : Boolean(false)

    Attributes
    final
    Definition Classes
    TreePrinters
  408. lazy val shutdownReq : CondPickler[scala.tools.nsc.interactive.ShutdownReq.type]

    Definition Classes
    Picklers
  409. def signalDone (context: Context, old: Tree, result: Tree): Unit

    Called from typechecker, which signals hereby that a node has been completely typechecked.

    Called from typechecker, which signals hereby that a node has been completely typechecked. If the node includes unit.targetPos, abandons run and returns newly attributed tree. Otherwise, if there's some higher priority work to be done, also abandons run with a FreshRunReq.

    context

    The context that typechecked the node

    old

    The original node

    result

    The transformed node

    Definition Classes
    GlobalGlobal
  410. def signalParseProgress (pos: Position): Unit

    Called from parser, which signals hereby that a method definition has been parsed.

    Called from parser, which signals hereby that a method definition has been parsed.

    Definition Classes
    GlobalGlobal
  411. def singleType (pre: Type, sym: Symbol): Type

    The canonical creator for single-types

    The canonical creator for single-types

    Definition Classes
    Types
  412. def singletonBounds (hi: Type): TypeBounds

    Definition Classes
    Types
  413. var skolemizationLevel : Int

    The current skolemization level, needed for the algorithms in isSameType, isSubType that do constraint solving under a prefix

    The current skolemization level, needed for the algorithms in isSameType, isSubType that do constraint solving under a prefix

    Definition Classes
    Types
  414. lazy val sn : SymbolNames

    Definition Classes
    StdNames
  415. def solidDescendants (tree: Tree): List[Tree]

    Definition Classes
    RangePositions
  416. def solve (tvars: List[TypeVar], tparams: List[Symbol], variances: List[Int], upper: Boolean, depth: Int): Boolean

    Definition Classes
    Types
  417. def solve (tvars: List[TypeVar], tparams: List[Symbol], variances: List[Int], upper: Boolean): Boolean

    Solve constraint collected in types tvars'.

    Solve constraint collected in types tvars'.

    tvars

    All type variables to be instantiated.

    tparams

    The type parameters corresponding to tvars'

    variances

    The variances of type parameters; need to reverse solution direction for all contravariant variables.

    upper

    When true' search for max solution else min.

    Definition Classes
    Types
  418. implicit lazy val sourceFile : Pickler[SourceFile]

    Attributes
    implicit
    Definition Classes
    Picklers
  419. def spanningTypes (ts: List[Type]): List[Type]

    A minimal type list which has a given list of types as its base type sequence

    A minimal type list which has a given list of types as its base type sequence

    Definition Classes
    Types
  420. object specializeTypes extends SpecializeTypes

  421. def specializesSym (tp: Type, sym: Symbol): Boolean

    Does type tp' implement symbol sym' with same or stronger type? Exact only if sym' is a member of some refinement type, otherwise we might return false negatives.

    Does type tp' implement symbol sym' with same or stronger type? Exact only if sym' is a member of some refinement type, otherwise we might return false negatives.

    Definition Classes
    Types
  422. def stabilizedType (tree: Tree): Type

  423. def startRun (period: Period): Period

    The period at the start of run that includes period'

    The period at the start of run that includes period'

    Attributes
    final
    Definition Classes
    SymbolTable
  424. object statistics extends Statistics

    Some statistics (normally disabled) set with -Ystatistics

  425. implicit def stringToTermName (s: String): TermName

    Attributes
    implicit
    Definition Classes
    StdNames
  426. object superAccessors extends SuperAccessors

  427. def superComment (sym: Symbol): Option[String]

    The cooked doc comment of an overridden symbol

    The cooked doc comment of an overridden symbol

    Attributes
    protected
    Definition Classes
    DocComments
  428. implicit lazy val symPickler : Pickler[Symbol]

    Attributes
    implicit
    Definition Classes
    Picklers
  429. def symbolCount : Int

    Definition Classes
    Symbols
  430. def syncTopLevelSyms (unit: RichCompilationUnit): Unit

    Update deleted and current top-level symbols sets

  431. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  432. object syntaxAnalyzer extends SyntaxAnalyzer

  433. object tailCalls extends TailCalls

  434. object terminal extends SubComponent

  435. implicit lazy val throwable : Pickler[Throwable]

    Attributes
    implicit
    Definition Classes
    Picklers
  436. def throwableAsString (t: Throwable): String

    Definition Classes
    Global
  437. val toBeRemoved : ArrayBuffer[AbstractFile] with SynchronizedBuffer[AbstractFile]

    A list containing all those files that need to be removed Units are removed by getUnit, typically once a unit is finished compiled.

    A list containing all those files that need to be removed Units are removed by getUnit, typically once a unit is finished compiled.

    Attributes
    protected
  438. def toJavaDoc (s: String): String

    Returns the javadoc format of doc comment string s, including wiki expansion

    Returns the javadoc format of doc comment string s, including wiki expansion

    Definition Classes
    DocComments
  439. def toString (): String

    Definition Classes
    AnyRef → Any
  440. object tpnme extends CompilerTypeNames with LibraryTypeNames with TypeNameMangling

    Definition Classes
    StdNames → StdNames
  441. lazy val transparentPosition : CondPickler[TransparentPosition]

    Definition Classes
    Picklers
  442. val treeBrowser : SwingBrowser

    Definition Classes
    Global
  443. object treeBrowsers extends TreeBrowsers

    Representing ASTs as graphs

  444. object treeChecker extends TreeCheckers

    Tree checker

  445. val treeCopy : LazyTreeCopier

    Definition Classes
    Trees
  446. object treeInfo extends TreeInfo

  447. lazy val treePrinter : TreePrinter

    Definition Classes
    Trees
  448. implicit def treeWrapper (tree: Tree): TreeOps

    Attributes
    implicit
    Definition Classes
    Trees
  449. def typeArgsString (tp: Type): String

    Definition Classes
    TypeDebugging
  450. object typeDebug extends AnyRef

  451. def typeFun (tps: List[Symbol], body: Type): Type

    A creator for a type functions, assuming the type parameters tps already have the right owner

    A creator for a type functions, assuming the type parameters tps already have the right owner

    Definition Classes
    Types
  452. def typeFunAnon (tps: List[Symbol], body: Type): Type

    A creator for anonymous type functions, where the symbol for the type function still needs to be created

    A creator for anonymous type functions, where the symbol for the type function still needs to be created

    TODO: type params of anonymous type functions, which currently can only arise from normalising type aliases, are owned by the type alias of which they are the eta-expansion higher-order subtyping expects eta-expansion of type constructors that arise from a class; here, the type params are owned by that class, but is that the right thing to do?

    Definition Classes
    Types
  453. def typeParamsString (tp: Type): String

    Definition Classes
    TypeDebugging
  454. def typeParamsToExistentials (clazz: Symbol, tparams: List[Symbol]): List[Symbol]

    Definition Classes
    Types
  455. def typeRef (pre: Type, sym: Symbol, args: List[Type]): Type

    The canonical creator for typerefs todo: see how we can clean this up a bit

    The canonical creator for typerefs todo: see how we can clean this up a bit

    Definition Classes
    Types
  456. object typeVarToOriginMap extends TypeMap

    A map to convert every occurrence of a type variable to a wildcard type

  457. object typer extends Typer

  458. object uncurry extends UnCurry

  459. val undetBaseTypeSeq : BaseTypeSeq

    A merker object for a base type sequence that's no yet computed.

    A merker object for a base type sequence that's no yet computed. used to catch inheritance cycles

    Definition Classes
    BaseTypeSeqs
  460. object undoLog extends AnyRef

    A log of type variable with their original constraints.

  461. def uniqueTypeCount : Int

    Definition Classes
    Types
  462. val unitOfFile : LinkedHashMap[AbstractFile, RichCompilationUnit] with SynchronizedMap[AbstractFile, RichCompilationUnit]

    A map of all loaded files to the rich compilation units that correspond to them.

  463. def useCases (sym: Symbol): List[(Symbol, String, Position)]

    Definition Classes
    DocComments
  464. def useCases (sym: Symbol, site: Symbol): List[(Symbol, String, Position)]

    The list of use cases of doc comment of symbol sym seen as a member of class site.

    The list of use cases of doc comment of symbol sym seen as a member of class site. Each use case consists of a synthetic symbol (which is entered nowhere else), of an expanded doc comment string, and of its position.

    sym

    The symbol for which use cases are returned

    site

    The class for which doc comments are generated

    Definition Classes
    DocComments
  465. def validatePositions (tree: Tree): Unit

    Definition Classes
    RangePositionsPositions
  466. val verboseIDE : Boolean

  467. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  470. val waitLoadedTypeResponses : ResponseMap

    A map that associates with each abstract file the set of responses that are waiting (via waitLoadedTyped) for the unit associated with the abstract file to be loaded and completely typechecked.

    A map that associates with each abstract file the set of responses that are waiting (via waitLoadedTyped) for the unit associated with the abstract file to be loaded and completely typechecked.

    Attributes
    protected
  471. def warning (msg: String): Unit

    Definition Classes
    Global
  472. def weakGlb (ts: List[Type]): (Type, Boolean)

    Definition Classes
    Types
  473. def weakLub (ts: List[Type]): (Type, Boolean)

    Definition Classes
    Types
  474. object wildcardToTypeVarMap extends TypeMap

    A map to convert every occurrence of a wildcard type to a fresh type variable

  475. def withTypesExplained [A] (op: ⇒ A): A

    Execute op' while printing a trace of the operations on types executed.

    Execute op' while printing a trace of the operations on types executed.

    Definition Classes
    Types
  476. implicit def workEvent : Pickler[WorkEvent]

    Attributes
    implicit
    Definition Classes
    Picklers
  477. def wrappingPos (trees: List[Tree]): Position

    A position that wraps a non-empty set of trees.

    A position that wraps a non-empty set of trees. The point of the wrapping position is the point of the first trees' position. If some of the trees are ranges, returns a range position enclosing all ranges Otherwise returns first tree's position.

    Definition Classes
    RangePositionsPositions
  478. def wrappingPos (default: Position, trees: List[Tree]): Position

    A position that wraps a set of trees.

    A position that wraps a set of trees. The point of the wrapping position is the point of the default position. If some of the trees are ranges, returns a range position enclosing all ranges Otherwise returns default position.

    Definition Classes
    RangePositionsPositions

Deprecated Value Members

  1. def askParse (source: SourceFile, response: Response[Tree]): Unit

    Definition Classes
    CompilerControl
    Annotations
    @deprecated
    Deprecated

    use parseTree(source) instead

  2. def onlyPresentation : Boolean

    Definition Classes
    Global
    Annotations
    @deprecated
    Deprecated

    Use forInteractive or forScaladoc, depending on what you're after

  3. def unitOf (pos: Position): RichCompilationUnit

    The compilation unit corresponding to a position

    The compilation unit corresponding to a position

    Definition Classes
    CompilerControl
    Annotations
    @deprecated
    Deprecated

    use getUnitOf(pos.source) or onUnitOf(pos.source) instead

  4. def unitOf (s: SourceFile): RichCompilationUnit

    The compilation unit corresponding to a source file if it does not yet exist create a new one atomically Note: We want to get roid of this operation as it messes compiler invariants.

    The compilation unit corresponding to a source file if it does not yet exist create a new one atomically Note: We want to get roid of this operation as it messes compiler invariants.

    Definition Classes
    CompilerControl
    Annotations
    @deprecated
    Deprecated

    use getUnitOf(s) or onUnitOf(s) instead

  5. def view (s: String): TermName

    Definition Classes
    Names
    Annotations
    @deprecated
    Deprecated

Inherited from Picklers

Inherited from RichCompilationUnits

Inherited from ContextTrees

Inherited from RangePositions

Inherited from CompilerControl

Inherited from Global

Inherited from PhaseAssembly

Inherited from Plugins

Inherited from CompilationUnits

Inherited from SymbolTable

Inherited from TypeDebugging

Inherited from DocComments

Inherited from Positions

Inherited from TreePrinters

Inherited from Trees

Inherited from AnnotationCheckers

Inherited from AnnotationInfos

Inherited from StdNames

Inherited from NameManglers

Inherited from InfoTransformers

Inherited from BaseTypeSeqs

Inherited from Definitions

Inherited from Scopes

Inherited from Types

Inherited from Symbols

Inherited from Names

Inherited from Universe

Inherited from StandardDefinitions

Inherited from AnnotationInfos

Inherited from Trees

Inherited from StdNames

Inherited from Names

Inherited from Scopes

Inherited from Constants

Inherited from Types

Inherited from Symbols

Inherited from AnyRef

Inherited from Any