Packages

abstract class Namer extends Analyzer.MethodSynth with Analyzer.NamerContextErrors

Self Type
Analyzer.Namer
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Namer
  2. NamerContextErrors
  3. MethodSynth
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Namer(context: Analyzer.Context)

Value Members

  1. object NamerErrorGen
    Definition Classes
    NamerContextErrors
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def accessorTypeCompleter(valDef: Global.ValDef, missingTpt: Boolean, isBean: Boolean, isSetter: Boolean): AccessorTypeCompleter
  6. def addApplyUnapply(cdef: Global.ClassDef, namer: Analyzer.Namer): Unit

    Given a case class case class C[Ts] (ps: Us) Add the following methods to toScope:

    Given a case class case class C[Ts] (ps: Us) Add the following methods to toScope:

    1. if case class is not abstract, add <synthetic> <case> def apply[Ts](ps: Us): C[Ts] = new C[Ts](ps) 2. add a method <synthetic> <case> def unapply[Ts](x: C[Ts]) = <ret-val> where <ret-val> is the caseClassUnapplyReturnValue of class C (see UnApplies.scala)
    cdef

    is the class definition of the case class

    namer

    is the namer of the module class (the comp. obj)

  7. def addCopyMethod(cdef: Global.ClassDef, namer: Analyzer.Namer): Unit
  8. def annotSig(annotations: List[Global.Tree]): List[Global.AnnotationInfo]
  9. def applicableTypeParams(owner: Global.Symbol): List[Global.Symbol]
  10. def applyUnapplyMethodCompleter(un_applyDef: Global.DefDef, companionContext: Analyzer.Context): Analyzer.TypeCompleter
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def assignAndEnterFinishedSymbol(tree: Global.MemberDef): Global.Symbol
  13. def assignMemberSymbol(tree: Global.MemberDef, mask: Long = -1L): Global.Symbol
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. def completerOf(tree: Global.MemberDef): Analyzer.TypeCompleter
  16. def conflict(newS: Global.Symbol, oldS: Global.Symbol): Boolean
    Attributes
    protected
  17. val context: Analyzer.Context
  18. def contextFile: AbstractFile
  19. def copyMethodCompleter(copyDef: Global.DefDef): Analyzer.TypeCompleter
  20. def createImportSymbol(tree: Global.Import): Global.TermSymbol
  21. def createInnerNamer(): Analyzer.Namer
  22. def createMemberSymbol(tree: Global.MemberDef, name: Global.Name, mask: Long): Global.Symbol

    Create a new symbol at the context owner based on the given tree.

    Create a new symbol at the context owner based on the given tree. A different name can be given. If the modifier flags should not be be transferred to the symbol as they are, supply a mask containing the flags to keep.

  23. def createMethod(accessQual: Global.MemberDef, name: Global.TermName, pos: Global.Position, flags: Long): Global.MethodSymbol
  24. def createNamer(tree: Global.Tree): Analyzer.Namer
  25. def createPackageSymbol(pos: Global.Position, pid: Global.RefTree): Global.Symbol

    All PackageClassInfoTypes come from here.

  26. def createPrimaryConstructorParameterNamer: Analyzer.Namer
  27. def deriveAccessors(vd: Global.ValDef): Boolean
  28. def enclosingNamerWithScope(scope: Global.Scope): Analyzer.Namer
  29. def ensureCompanionObject(cdef: Global.ClassDef, creator: (Global.ClassDef) ⇒ Global.Tree = companionModuleDef(_)): Global.Symbol

    If no companion object for clazz exists yet, create one by applying creator to class definition tree.

    If no companion object for clazz exists yet, create one by applying creator to class definition tree.

    returns

    the companion object symbol.

  30. def enterClassDef(tree: Global.ClassDef): Unit
  31. def enterClassSymbol(tree: Global.ClassDef): Global.Symbol
  32. def enterDefDef(tree: Global.DefDef): Unit
  33. def enterDefaultGetters(meth: Global.Symbol, ddef: Global.DefDef, vparamss: List[List[Global.ValDef]], tparams: List[Global.TypeDef]): Unit

    For every default argument, insert a method symbol computing that default

  34. def enterExistingSym(sym: Global.Symbol, tree: Global.Tree): Analyzer.Context
  35. def enterGetterSetter(tree: Global.ValDef): Unit
    Definition Classes
    MethodSynth
  36. def enterIfNotThere(sym: Global.Symbol): Unit
  37. def enterImplicitWrapper(classDef: Global.ClassDef): Unit
    Definition Classes
    MethodSynth
  38. def enterInScope(sym: Global.Symbol, scope: Global.Scope): Global.Symbol

    Enter symbol into given scope and return symbol itself

  39. def enterInScope(sym: Global.Symbol): Global.Symbol

    Enter symbol into context's scope and return symbol itself

  40. def enterModuleDef(tree: Global.ModuleDef): Global.Symbol
  41. def enterModuleSymbol(tree: Global.ModuleDef): Global.Symbol

    Enter a module symbol.

  42. def enterPackage(tree: Global.PackageDef): Unit
  43. def enterSelf(self: Global.ValDef): Unit
  44. def enterSym(tree: Global.Tree): Analyzer.Context
  45. def enterSyms(trees: List[Global.Tree]): Analyzer.Namer
  46. def enterSyntheticSym(tree: Global.Tree): Global.Symbol
  47. def enterTypeDef(tree: Global.TypeDef): Global.Symbol
  48. def enterValDef(tree: Global.ValDef): Unit
  49. def enterValueParams(vparamss: List[List[Global.ValDef]]): List[List[Global.Symbol]]
  50. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  52. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  53. def findCyclicalLowerBound(tp: Global.Type): Global.Symbol
  54. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def handleSyntheticNameConflict(sym1: Global.Symbol, sym2: Global.Symbol): Unit

    Logic to handle name conflicts of synthetically generated symbols We handle right now: t6227

  56. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  57. def implicitFactoryMethodCompleter(tree: Global.DefDef, classSym: Global.Symbol): Analyzer.CompleterWrapper
  58. def importTypeCompleter(tree: Global.Import): ImportTypeCompleter
  59. def inConstructorFlag: Long
  60. def includeParent(tpe: Global.Type, parent: Global.Symbol): Global.Type
  61. def isEnumConstant(vd: Global.ValDef): Boolean

    Determines whether this field holds an enum constant.

    Determines whether this field holds an enum constant. To qualify, the following conditions must be met:

    • The field's class has the ENUM flag set
    • The field's class extends java.lang.Enum
    • The field has the ENUM flag set
    • The field is static
    • The field is stable
  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. def moduleClassFlags(moduleFlags: Long): Long
  64. def moduleClassTypeCompleter(tree: Global.ModuleDef): ModuleClassTypeCompleter
  65. def monoTypeCompleter(tree: Global.MemberDef): MonoTypeCompleter
  66. def namerOf(sym: Global.Symbol): Analyzer.Namer
  67. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  68. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. def owner: Global.Symbol
    Attributes
    protected
  71. def saveDefaultGetter(meth: Global.Symbol, default: Global.Symbol): Unit
  72. def selfTypeCompleter(tree: Global.Tree): SelfTypeCompleter
  73. def setPrivateWithin(tree: Global.MemberDef, sym: Global.Symbol): Global.Symbol
  74. def setPrivateWithin[T <: Global.Symbol](tree: Global.Tree, sym: T, mods: Global.Modifiers): T
  75. def standardEnsureCompanionObject(cdef: Global.ClassDef, creator: (Global.ClassDef) ⇒ Global.Tree = companionModuleDef(_)): Global.Symbol

    Default implementation of ensureCompanionObject.

    Default implementation of ensureCompanionObject. Can be overridden by analyzer plugins (see AnalyzerPlugins.pluginsEnsureCompanionObject for more details)

  76. def standardEnterSym(tree: Global.Tree): Analyzer.Context

    Default implementation of enterSym.

    Default implementation of enterSym. Can be overridden by analyzer plugins (see AnalyzerPlugins.pluginsEnterSym for more details)

  77. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. def typeErrorHandler[T](tree: Global.Tree, alt: T): PartialFunction[Throwable, T]
  80. def typeSig(tree: Global.Tree, annotSigs: List[Global.AnnotationInfo]): Global.Type

    TypeSig is invoked by monoTypeCompleters.

    TypeSig is invoked by monoTypeCompleters. It returns the type of a definition which is then assigned to the corresponding symbol (typeSig itself does not need to assign the type to the symbol, but it can if necessary).

  81. val typer: Analyzer.Typer
  82. def updatePosFlags(sym: Global.Symbol, pos: Global.Position, flags: Long): Global.Symbol
  83. def valTypeCompleter(tree: Global.ValDef): ValTypeCompleter
  84. def validate(sym: Global.Symbol): Unit

    Check that symbol's definition is well-formed.

    Check that symbol's definition is well-formed. This means:

    • no conflicting modifiers
    • abstract modifier only for classes
    • override modifier never for classes
    • def modifier never for parameters of case classes
    • declarations only in mixins or abstract classes (when not @native)
  85. def validateCompanionDefs(tree: Global.ImplDef): Unit

    Given a ClassDef or ModuleDef, verifies there isn't a companion which has been defined in a separate file.

  86. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  87. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Analyzer.MethodSynth

Inherited from AnyRef

Inherited from Any

Ungrouped