Scala Compiler2.13.15 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  class Global extends SymbolTable with Closeable with CompilationUnits with Plugins with PhaseAssembly with Trees with Printers with DocComments with Positions with Reporting with Parsing
  Definition Classes
    nsc
- AbstractTypeRef
- AbstractTypeSymbol
- AliasTypeRef
- AliasTypeSymbol
- Alternative
- Alternative
- AlternativeApi
- AlternativeExtractor
- Annotatable
- Annotated
- Annotated
- AnnotatedApi
- AnnotatedExtractor
- AnnotatedType
- AnnotatedType
- AnnotatedTypeApi
- AnnotatedTypeExtractor
- AnnotationApi
- AnnotationChecker
- AnnotationExtractor
- AnnotationFilter
- AnnotationInfo
- AnnotationInfo
- AntiPolyType
- AppliedTypeTree
- AppliedTypeTree
- AppliedTypeTreeApi
- AppliedTypeTreeExtractor
- AppliedTypeVar
- Apply
- Apply
- ApplyApi
- ApplyDynamic
- ApplyExtractor
- ApplyImplicitView
- ApplyToImplicitArgs
- ApproximateDependentMap
- ArgsTypeRef
- ArrayAnnotArg
- ArrayValue
- AsSeenFromMap
- Assign
- Assign
- AssignApi
- AssignExtractor
- Attachable
- AutoApplicationAttachment
- BackquotedIdentifierAttachment
- BaseTypeSeq
- Bind
- Bind
- BindApi
- BindExtractor
- Block
- Block
- BlockApi
- BlockExtractor
- BooleanFlag
- BooleanFlag
- BooleanParameterType
- BoundedWildcardType
- BoundedWildcardType
- BoundedWildcardTypeApi
- BoundedWildcardTypeExtractor
- CannotHaveAttrs
- CaseApplyInheritAccess
- CaseDef
- CaseDef
- CaseDefApi
- CaseDefExtractor
- ChangeOwnerAttachment
- ChangeOwnerTraverser
- ChildSolidDescendantsCollector
- ClassDef
- ClassDef
- ClassDefApi
- ClassDefExtractor
- ClassInfoType
- ClassInfoType
- ClassInfoTypeApi
- ClassInfoTypeExtractor
- ClassMirror
- ClassSymbol
- ClassSymbolApi
- ClassUnwrapper
- ClassfileAnnotArg
- CodePrinter
- CollectTreeTraverser
- CollectTypeCollector
- CommonNames
- CommonOwnerMap
- CompactTreePrinter
- CompatApi
- CompatToken
- CompilationUnit
- CompilationUnitContextApi
- CompleteAnnotationInfo
- CompoundType
- CompoundType
- CompoundTypeApi
- CompoundTypeTree
- CompoundTypeTree
- CompoundTypeTreeApi
- CompoundTypeTreeExtractor
- CompoundTypeTreeOriginalAttachment
- ConsoleWriter
- Constant
- Constant
- ConstantApi
- ConstantExtractor
- ConstantType
- ConstantType
- ConstantTypeApi
- ConstantTypeExtractor
- ConstructorNeedsFence
- ContainsAnyKeyCollector
- ContainsCollector
- CyclicReference
- CyclicReference
- DefDef
- DefDef
- DefDefApi
- DefDefExtractor
- DefTree
- DefTreeApi
- DefaultPosAssigner
- DefinitionsApi
- DefinitionsClass
- DelambdafyTarget
- DiscardedExpr
- DiscardedValue
- DocComment
- DocDef
- DottyEnumSingleton
- DottyOpaqueTypeAlias
- DottyParameterisedTrait
- EmptyScope
- EmptyTree
- ErasedValueType
- ErasedValueType
- ErroneousAnnotation
- ErrorScope
- ErrorType
- ExistentialExtrapolation
- ExistentialType
- ExistentialType
- ExistentialTypeApi
- ExistentialTypeExtractor
- ExistentialTypeTree
- ExistentialTypeTree
- ExistentialTypeTreeApi
- ExistentialTypeTreeExtractor
- ExistsTypeRefCollector
- ExpansionLimitExceeded
- Expr
- Expr
- ExtraLazyAnnotationInfo
- FieldMirror
- FieldTypeInferred
- FilterTreeTraverser
- FilterTypeCollector
- FindTreeTraverser
- FindTypeCollector
- FixedMirrorTreeCreator
- FixedMirrorTypeCreator
- Flag
- FlagAgnosticCompleter
- FlagAssigningCompleter
- FlagOps
- FlagValues
- FoldableConstantType
- FoldableConstantType
- ForAttachment
- ForEachTypeTraverser
- ForeachPartialTreeTraverser
- ForeachTreeTraverser
- FreeSymbol
- FreeTermSymbol
- FreeTermSymbolApi
- FreeTypeSymbol
- FreeTypeSymbolApi
- FreshNameExtractor
- Function
- Function
- FunctionApi
- FunctionExtractor
- GenPolyType
- GenericApply
- GenericApplyApi
- GlobalMirror
- GlobalPhase
- GlobalPlatform
- GlobalStats
- HKTypeVar
- Ident
- Ident
- IdentApi
- IdentExtractor
- If
- If
- IfApi
- IfExtractor
- ImplDef
- ImplDefApi
- Import
- Import
- ImportApi
- ImportExtractor
- ImportSelector
- ImportSelector
- ImportSelectorApi
- ImportSelectorExtractor
- ImportType
- ImportableAttachment
- Importer
- InfixAttachment
- InfoTransformer
- InjectDerivedValue
- InlineAnnotatedAttachment
- InlineCallsiteAttachment
- InstanceMirror
- InstantiateDependentMap
- InternalApi
- InternalTransformer
- InternalTraverser
- InternalTreeCopierOps
- InterpolatedString
- InvalidateTypeCaches
- JavaArgumentApi
- JavaKeywords
- JavaRestrictedIdentifiers
- KeepOnlyTypeConstraints
- Keywords
- Kind
- Kind
- KindErrors
- LabelDef
- LabelDef
- LabelDefApi
- LabelDefExtractor
- LazyAnnotationInfo
- LazyPolyType
- LazyTreeCopier
- LazyType
- Liftable
- Liftable
- Literal
- Literal
- LiteralAnnotArg
- LiteralApi
- LiteralExtractor
- LiteralType
- LiteralType
- LocalOwnersTraverser
- Locator
- LookupAmbiguityWarning
- LookupAmbiguous
- LookupInaccessible
- LookupNotFound
- LookupSucceeded
- MacroCompatApi
- MacroInternalApi
- MalformedType
- MappedBaseTypeSeq
- Match
- Match
- MatchApi
- MatchExtractor
- MemberDef
- MemberDefApi
- MemberScopeApi
- MethodMirror
- MethodSymbol
- MethodSymbolApi
- MethodType
- MethodType
- MethodTypeApi
- MethodTypeExtractor
- MethodValue
- Mirror
- MissingAliasControl
- MissingTypeControl
- Modifiers
- Modifiers
- ModifiersApi
- ModifiersExtractor
- ModuleClassSymbol
- ModuleDef
- ModuleDef
- ModuleDefApi
- ModuleDefExtractor
- ModuleMirror
- ModuleSymbol
- ModuleSymbolApi
- ModuleTypeRef
- MultiDefAttachment
- MultiargInfixAttachment
- Name
- NameApi
- NameHasIsEmpty
- NameLookup
- NamePos
- NameTree
- NameTreeApi
- NamedArg
- NamedArg
- NamedArgApi
- NamedArgExtractor
- NamedType
- NamesApi
- NestedAnnotArg
- New
- New
- NewApi
- NewExtractor
- NoArgsTypeRef
- NoCommonType
- NoCompilationUnit
- NoInlineCallsiteAttachment
- NoPrefix
- NoSymbol
- NoType
- NoWarnAttachment
- NonClassTypeRef
- NullaryMethodType
- NullaryMethodType
- NullaryMethodTypeApi
- NullaryMethodTypeExtractor
- NullaryOverrideAdapted
- OuterArgCanBeElided
- OverloadedArgProto
- OverloadedType
- PackageClassInfoType
- PackageClassSymbol
- PackageDef
- PackageDef
- PackageDefApi
- PackageDefExtractor
- PackageObjectClassSymbol
- PackageTypeRef
- Parens
- PatShadowAttachment
- PatVarDefAttachment
- PerRunParsing
- PerRunReporting
- PerRunReportingBase
- PermittedSubclassSymbols
- PermittedSubclasses
- PlainAttachment
- PolyType
- PolyType
- PolyTypeApi
- PolyTypeExtractor
- PosAssigner
- PostfixAttachment
- ProperTypeKind
- ProtoType
- QualTypeSymAttachment
- Quasiquote
- RawTreePrinter
- RecoverableCyclicReference
- RefTree
- RefTree
- RefTreeApi
- RefTreeExtractor
- ReferenceToBoxed
- ReferenceToBoxed
- ReferenceToBoxedApi
- ReferenceToBoxedExtractor
- RefinedType
- RefinedType
- RefinedType0
- RefinedTypeApi
- RefinedTypeExtractor
- RefinementClassSymbol
- RefinementTypeRef
- ReflectStats
- ReflectiveMirror
- ReificationSupportApi
- ReificationSupportImpl
- RepeatedType
- Return
- Return
- ReturnApi
- ReturnExtractor
- RewrappingTypeProxy
- RootSelection
- RootSymbol
- Roots
- RootsBase
- Run
- RunContextApi
- RunParsing
- RunReporting
- RuntimeClassApi
- RuntimeMirror
- SAMFunction
- Scope
- Scope
- ScopeApi
- ScopeEntry
- Select
- Select
- SelectApi
- SelectExtractor
- SelectFromArray
- SelectFromTypeTree
- SelectFromTypeTree
- SelectFromTypeTreeApi
- SelectFromTypeTreeExtractor
- SimpleTypeProxy
- SingleType
- SingleType
- SingleTypeApi
- SingleTypeExtractor
- SingletonType
- SingletonTypeApi
- SingletonTypeTree
- SingletonTypeTree
- SingletonTypeTreeApi
- SingletonTypeTreeExtractor
- StandardImporter
- StandardLiftableInstances
- StandardTypes
- StandardUnliftableInstances
- Star
- Star
- StarApi
- StarExtractor
- StaticallyAnnotatedType
- StrictTreeCopier
- StubClassSymbol
- StubSymbol
- StubTermSymbol
- SubType
- SubTypePair
- SubpatternsAttachment
- SubstMap
- SubstSymMap
- SubstSymMap
- SubstThisMap
- SubstTypeMap
- SubstWildcardMap
- Super
- Super
- SuperApi
- SuperExtractor
- SuperType
- SuperType
- SuperTypeApi
- SuperTypeExtractor
- SymLoader
- SymTree
- SymTreeApi
- Symbol
- SymbolApi
- SymbolContextApiImpl
- SymbolNames
- SymbolOps
- SymbolTableInternal
- SyntheticUnitAttachment
- Template
- Template
- TemplateApi
- TemplateExtractor
- TemplateMirror
- TermName
- TermName
- TermNameApi
- TermNameExtractor
- TermNames
- TermNamesApi
- TermSymbol
- TermSymbolApi
- TermTree
- TermTreeApi
- This
- This
- ThisApi
- ThisExtractor
- ThisSubstituter
- ThisType
- ThisType
- ThisTypeApi
- ThisTypeExtractor
- Throw
- Throw
- ThrowApi
- ThrowExtractor
- ThrownException
- Transformer
- Traverser
- Tree
- TreeApi
- TreeContextApiImpl
- TreeCopier
- TreeCopierOps
- TreeGen
- TreePrinter
- TreeReplacer
- TreeStackTraverser
- TreeSubstituter
- TreeSymSubstTraverser
- TreeSymSubstituter
- TreeTypeSubstituter
- Try
- Try
- TryApi
- TryExtractor
- TypTree
- TypTreeApi
- Type
- TypeApi
- TypeApiImpl
- TypeApply
- TypeApply
- TypeApplyApi
- TypeApplyExtractor
- TypeBounds
- TypeBounds
- TypeBoundsApi
- TypeBoundsExtractor
- TypeBoundsTree
- TypeBoundsTree
- TypeBoundsTreeApi
- TypeBoundsTreeExtractor
- TypeCollector
- TypeConKind
- TypeConKind
- TypeConstraint
- TypeDef
- TypeDef
- TypeDefApi
- TypeDefExtractor
- TypeError
- TypeFolder
- TypeMap
- TypeMapTreeSubstituter
- TypeName
- TypeName
- TypeNameApi
- TypeNameExtractor
- TypeNames
- TypeNamesApi
- TypeParamVarargsAttachment
- TypeRef
- TypeRef
- TypeRefApi
- TypeRefExtractor
- TypeSkolem
- TypeSymbol
- TypeSymbolApi
- TypeTag
- TypeTag
- TypeTraverser
- TypeTree
- TypeTree
- TypeTreeApi
- TypeTreeExtractor
- TypeTreeWithDeferredRefCheck
- TypeUnwrapper
- TypeVar
- TypeVar
- Typed
- Typed
- TypedApi
- TypedExpectingUnitAttachment
- TypedExtractor
- TypedLocator
- UnApply
- UnApply
- UnApplyApi
- UnApplyExtractor
- UndoLog
- UniqueConstantType
- UniqueErasedValueType
- UniqueLiteralType
- UniqueSingleType
- UniqueSuperType
- UniqueThisType
- UniqueType
- UniqueTypeBounds
- Unliftable
- UnmappableAnnotation
- UnnamedArg
- UntouchableTypeVar
- UseCase
- UseInvokeSpecial
- ValDef
- ValDef
- ValDefApi
- ValDefExtractor
- ValOrDefDef
- ValOrDefDef
- ValOrDefDefApi
- ValidateException
- ValidatingPosAssigner
- ValueClassDefinitions
- VarAlias
- VarianceValidator
- VariancedTypeMap
- VirtualStringContext
- WeakTypeTag
- WeakTypeTag
- WildcardType
- abstractTypesToBounds
- adaptToNewRunMap
- async
- cleanup
- constfold
- constructors
- definitions
- delambdafy
- dropIllegalStarTypes
- dropSingletonType
- duplicateAndResetPos
- erasure
- explicitOuter
- extensionMethods
- fields
- flatten
- gen
- genBCode
- icodes
- inferKind
- lambdaLift
- mixer
- nme
- noPrint
- noSelfType
- nodePrinters
- noopTransformer
- overridingPairs
- patmat
- pendingSuperCall
- perRunCaches
- pickler
- postErasure
- refChecks
- scalaPrimitives
- specializeTypes
- statistics
- superAccessors
- tailCalls
- terminal
- tpnme
- traceSymbols
- treeBrowsers
- treeChecker
- treeInfo
- typeDebug
- typeDeconstruct
- typer
- uncurry
- unwrapToClass
- unwrapToStableClass
- unwrapWrapperTypes
- wildcardExtrapolation

o

scala.tools.nsc.Global

# gen

###

#### object gen extends ast.TreeGen

Tree generation, usually based on existing symbols.

Definition Classes
  Global → SymbolTable
Source
  Global.scala

Linear Supertypes
ast.TreeGen, TreeDSL, reflect.internal.TreeGen, AnyRef, Any

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. gen
2. TreeGen
3. TreeDSL
4. TreeGen
5. AnyRef
6. Any

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Type Members

1.  class GetVarTraverser extends reflect.internal.SymbolTable.Traverser
   Definition Classes
     TreeGen
2.  class PatvarTransformer extends reflect.internal.SymbolTable.Transformer
   Definition Classes
     TreeGen

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##: Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
5.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.CloneNotSupportedException]) @native()
6.  def convertToSelectFromType(qual: Global.Tree, origName: Global.Name): Global.Tree with java.io.Serializable

   Try to convert Select(qual, name) to a SelectFromTypeTree.

   Try to convert Select(qual, name) to a SelectFromTypeTree.

   Definition Classes
     TreeGen
7.  def convertToTypeName(tree: Global.Tree): Option[Global.RefTree]

   Translate names in Select/Ident nodes to type names.

   Translate names in Select/Ident nodes to type names.

   Definition Classes
     TreeGen
8.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
9.  def equals(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef → Any
10.  def evalOnce(expr: Global.Tree, owner: Global.Symbol, fresh: FreshNameCreator)(within: (() => Global.Tree) => Global.Tree): Global.Tree
    Definition Classes
      TreeGen
11.  def evalOnce(expr: Global.Tree, owner: Global.Symbol, unit: Global.CompilationUnit)(within: (() => Global.Tree) => Global.Tree): Global.Tree

    Used in situations where you need to access value of an expression several times

    Used in situations where you need to access value of an expression several times

    Definition Classes
      TreeGen
12.  def evalOnceAll(exprs: List[Global.Tree], owner: Global.Symbol, fresh: FreshNameCreator)(within: (List[() => Global.Tree]) => Global.Tree): Global.Tree
    Definition Classes
      TreeGen
13.  def evalOnceAll(exprs: List[Global.Tree], owner: Global.Symbol, unit: Global.CompilationUnit)(within: (List[() => Global.Tree]) => Global.Tree): Global.Tree
    Definition Classes
      TreeGen
14.  def expandFunction(localTyper: (analyzer)#Typer)(fun: Global.Function, inConstructorFlag: Long): Global.Tree
    Definition Classes
      TreeGen
15.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
16.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
17.  val global: Global.this.type
    Definition Classes
      gen → TreeGen → TreeDSL → TreeGen
18.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
19.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
20.  def isPatVarWarnable: Boolean
    Definition Classes
      TreeGen → TreeGen
21.  def isVarDefWarnable: Boolean
    Definition Classes
      TreeGen → TreeGen
22.  def maybeMkAsInstanceOf(tree: Global.Tree, pt: Global.Type, tpe: Global.Type, beforeRefChecks: Boolean): Global.Tree
    Definition Classes
      TreeGen
23.  def mkAnd(tree1: Global.Tree, tree2: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
24.  def mkAnonymousNew(stats: List[Global.Tree]): Global.Tree

    Creates a tree representing new Object { stats }.

    Creates a tree representing new Object { stats }. To make sure an anonymous subclass of Object is created, if there are no stats, a () is added.

    Definition Classes
      TreeGen
25.  def mkAppliedTypeForCase(clazz: Global.Symbol): Global.Tree
    Definition Classes
      TreeGen
26.  def mkAppliedTypeTree(fun: Global.Tree, targs: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
27.  def mkApplyIfNeeded(qual: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
28.  def mkAsInstanceOf(value: Global.Tree, tpe: Global.Type, any: Boolean, wrapInApply: Boolean): Global.Tree
    Definition Classes
      TreeGen
29.  def mkAssign(lhs: Global.Tree, rhs: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
30.  def mkAssignAndReturn(lhs: Global.Symbol, rhs: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
31.  def mkAttributedCast(tree: Global.Tree, pt: Global.Type): Global.Tree
32.  def mkAttributedIdent(sym: Global.Symbol): Global.RefTree
    Definition Classes
      TreeGen
33.  def mkAttributedQualifier(tpe: Global.Type, termSym: Global.Symbol): Global.Tree
    Definition Classes
      TreeGen
34.  def mkAttributedQualifier(tpe: Global.Type): Global.Tree
    Definition Classes
      TreeGen
35.  final def mkAttributedQualifierIfPossible(prefix: Global.Type): Option[Global.Tree]
    Definition Classes
      TreeGen
    Annotations
      @tailrec()
36.  def mkAttributedRef(sym: Global.Symbol): Global.RefTree
    Definition Classes
      TreeGen
37.  def mkAttributedRef(pre: Global.Type, sym: Global.Symbol): Global.RefTree
    Definition Classes
      TreeGen
38.  def mkAttributedSelect(qual: Global.Tree, sym: Global.Symbol): Global.RefTree
    Definition Classes
      TreeGen
39.  def mkAttributedStableRef(sym: Global.Symbol): Global.Tree
    Definition Classes
      TreeGen
40.  def mkAttributedStableRef(pre: Global.Type, sym: Global.Symbol): Global.Tree
    Definition Classes
      TreeGen
41.  def mkAttributedThis(sym: Global.Symbol): Global.This
    Definition Classes
      TreeGen
42.  def mkAttributedTypeApply(target: Global.Tree, method: Global.Symbol, targs: List[Global.Type]): Global.Tree
    Definition Classes
      TreeGen
43.  def mkBindForCase(patVar: Global.Symbol, clazz: Global.Symbol, targs: List[Global.Type]): Global.Tree
    Definition Classes
      TreeGen
44.  def mkBlock(stats: List[Global.Tree], doFlatten: Boolean): Global.Tree
    Definition Classes
      TreeGen
45.  def mkCast(tree: Global.Tree, pt: Global.Type): Global.Tree

    Cast `tree` to type `pt` by creating one of the calls of the form

    Cast `tree` to type `pt` by creating one of the calls of the form

    x.asInstanceOf[`pt`] up to phase uncurry x.asInstanceOf[`pt`]() if after uncurry but before erasure x.$asInstanceOf[`pt`]() if at or after erasure

    Definition Classes
      TreeGen → TreeGen
46.  def mkCastArray(tree: Global.Tree, elemtp: Global.Type, pt: Global.Type): Global.Tree

    Generate a cast for tree Tree representing Array with elem type elemtp to expected type pt.

    Generate a cast for tree Tree representing Array with elem type elemtp to expected type pt.

    Definition Classes
      TreeGen
47.  def mkCastPreservingAnnotations(tree: Global.Tree, pt: Global.Type): Global.Typed
    Definition Classes
      TreeGen
48.  def mkCheckIfRefutable(pat: Global.Tree, rhs: Global.Tree)(implicit fresh: FreshNameCreator): Global.Tree
    Definition Classes
      TreeGen
49.  def mkClassDef(mods: Global.Modifiers, name: Global.TypeName, tparams: List[Global.TypeDef], templ: Global.Template): Global.ClassDef
    Definition Classes
      TreeGen
50.  def mkClassOf(tp: Global.Type): Global.Tree
    Definition Classes
      TreeGen
51.  def mkConstantZero(tp: Global.Type): Global.Constant
    Definition Classes
      TreeGen
52.  def mkFor(enums: List[Global.Tree], sugarBody: Global.Tree)(implicit fresh: FreshNameCreator): Global.Tree
    Definition Classes
      TreeGen
53.  def mkForwarder(target: Global.Tree, vparamss: List[List[Global.Symbol]]): Global.Tree

    Make forwarder to method `target`, passing all parameters in `params`

    Make forwarder to method `target`, passing all parameters in `params`

    Definition Classes
      TreeGen
54.  def mkFunctionTypeTree(argtpes: List[Global.Tree], restpe: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
55.  def mkGenerator(pos: Global.Position, pat: Global.Tree, valeq: Boolean, rhs: Global.Tree)(implicit fresh: FreshNameCreator): Global.Tree
    Definition Classes
      TreeGen
56.  def mkImport(qualSym: Global.Symbol, name: Global.Name, toName: Global.Name): Global.Import

    Builds a fully attributed, synthetic import node.

    Builds a fully attributed, synthetic import node. import `qualSym`.{`name` => `toName`}

    Definition Classes
      TreeGen
57.  def mkImportFromSelector(qualSym: Global.Symbol, selector: List[Global.ImportSelector]): Global.Import
    Definition Classes
      TreeGen
58.  def mkIsInstanceOf(value: Global.Tree, tpe: Global.Type, any: Boolean, wrapInApply: Boolean): Global.Tree
    Definition Classes
      TreeGen
59.  def mkLiftedFunctionBodyMethod(localTyper: (analyzer)#Typer)(owner: Global.Symbol, fun: Global.Function): Global.DefDef
    Definition Classes
      TreeGen
60.  def mkLiteralUnit: Global.Literal
    Definition Classes
      TreeGen
61.  def mkManifestFactoryCall(full: Boolean, constructor: String, tparg: Global.Type, args: List[Global.Tree]): Global.Tree

    A creator for a call to a scala.reflect.Manifest or ClassManifest factory method.

    A creator for a call to a scala.reflect.Manifest or ClassManifest factory method.

    full

      full or partial manifest (target will be Manifest or ClassManifest)

    constructor

      name of the factory method (e.g. "classType")

    tparg

      the type argument

    args

      value arguments

    returns

      the tree

    Definition Classes
      TreeGen
62.  def mkMethodCall(target: Global.Tree, targs: List[Global.Type], args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
63.  def mkMethodCall(receiver: Global.Tree, method: Global.Symbol, targs: List[Global.Type], args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
64.  def mkMethodCall(receiver: Global.Symbol, methodName: Global.Name, args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
65.  def mkMethodCall(target: Global.Tree, args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
66.  def mkMethodCall(method: Global.Symbol, args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
67.  def mkMethodCall(method: Global.Symbol, targs: List[Global.Type], args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
68.  def mkMethodCall(receiver: Global.Symbol, methodName: Global.Name, targs: List[Global.Type], args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
69.  def mkMethodFromFunction(localTyper: (analyzer)#Typer)(owner: Global.Symbol, fun: Global.Function): Global.DefDef
    Definition Classes
      TreeGen
70.  def mkNamedArg(lhs: Global.Tree, rhs: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
71.  def mkNamedArg(name: Global.Name, tree: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
72.  def mkNew(parents: List[Global.Tree], self: Global.ValDef, stats: List[Global.Tree], npos: Global.Position, cpos: Global.Position): Global.Tree
    Definition Classes
      TreeGen
73.  def mkNil: Global.Tree
    Definition Classes
      TreeGen
74.  def mkNullaryCall(method: Global.Symbol, targs: List[Global.Type]): Global.Tree
    Definition Classes
      TreeGen
75.  def mkOr(tree1: Global.Tree, tree2: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
76.  def mkPackageObject(defn: Global.ModuleDef, pidPos: Global.Position, pkgPos: Global.Position): Global.PackageDef
    Definition Classes
      TreeGen
77.  def mkParents(ownerMods: Global.Modifiers, parents: List[Global.Tree], parentPos: Global.Position): collection.immutable.List[Global.Tree]
    Definition Classes
      TreeGen
78.  def mkPatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree, rhsPos: Global.Position)(implicit fresh: FreshNameCreator): List[Global.ValDef]
    Definition Classes
      TreeGen
79.  def mkPatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree)(implicit fresh: FreshNameCreator): List[Global.ValDef]
    Definition Classes
      TreeGen
80.  def mkPatDef(pat: Global.Tree, rhs: Global.Tree)(implicit fresh: FreshNameCreator): List[Global.ValDef]
    Definition Classes
      TreeGen
81.  def mkRuntimeCall(meth: Global.Name, targs: List[Global.Type], args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
82.  def mkRuntimeCall(meth: Global.Name, args: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
83.  def mkRuntimeUniverseRef: Global.Tree
    Definition Classes
      TreeGen
84.  def mkSeqApply(arg: Global.Tree): Global.Apply
    Definition Classes
      TreeGen
85.  def mkSoftRef(expr: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
86.  final def mkStatic(orig: Global.DefDef, newName: Global.Name, maybeClone: (Global.Symbol) => Global.Symbol): Global.DefDef

    Create a new `DefDef` based on `orig` with an explicit self parameter.

    Create a new `DefDef` based on `orig` with an explicit self parameter.

    Details:

    - Must by run after erasure
    - If `maybeClone` is the identity function, this runs "in place" and mutates the symbol of `orig`. `orig` should be discarded
    - Symbol owners and returns are substituted, as are parameter symbols
    - Recursive calls are not rewritten. This is correct if we assume that we either:
      - are in "in-place" mode, but can guarantee that no recursive calls exists
      - are associating the RHS with a cloned symbol, but intend for the original method to remain and for recursive calls to target it.
    Definition Classes
      TreeGen
87.  def mkSuperInitCall: Global.Select
    Definition Classes
      TreeGen
88.  def mkSynchronized(monitor: Global.Tree)(body: Global.Tree): Global.Tree

    Make a synchronized block on 'monitor'.

    Make a synchronized block on 'monitor'.

    Definition Classes
      TreeGen
89.  def mkSyntheticParam(pname: Global.TermName): Global.ValDef
    Definition Classes
      TreeGen
90.  def mkSyntheticUnit(): Global.Literal
    Definition Classes
      TreeGen
91.  def mkTemplate(parents: List[Global.Tree], self: Global.ValDef, constrMods: Global.Modifiers, vparamss: List[List[Global.ValDef]], body: List[Global.Tree], superPos: Global.Position): Global.Template
    Definition Classes
      TreeGen
92.  def mkThrowNewRuntimeException(message: String): Global.Throw
    Definition Classes
      TreeGen
93.  def mkTreeOrBlock(stats: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
94.  def mkTuple(elems: List[Global.Tree], flattenUnary: Boolean): Global.Tree
    Definition Classes
      TreeGen
95.  def mkTupleType(elems: List[Global.Tree], flattenUnary: Boolean): Global.Tree
    Definition Classes
      TreeGen
96.  def mkTypeApply(fun: Global.Tree, targs: List[Global.Tree]): Global.Tree
    Definition Classes
      TreeGen
97.  def mkUnattributedRef(fullName: Global.Name): Global.RefTree
    Definition Classes
      TreeGen
98.  def mkUnattributedRef(sym: Global.Symbol): Global.RefTree
    Definition Classes
      TreeGen
99.  def mkUnchecked(expr: Global.Tree): Global.Tree
    Definition Classes
      TreeGen
100.  def mkUnitBlock(expr: Global.Tree): Global.Block
     Definition Classes
       TreeGen
101.  def mkVisitor(cases: List[Global.CaseDef], checkExhaustive: Boolean, prefix: String)(implicit fresh: FreshNameCreator): Global.Tree
     Definition Classes
       TreeGen
102.  def mkWildcardImport(pkg: Global.Symbol): Global.Import

     Builds a fully attributed, synthetic wildcard import node.

     Builds a fully attributed, synthetic wildcard import node.

     Definition Classes
       TreeGen
103.  def mkWrapVarargsArray(tree: Global.Tree, elemtp: Global.Type): Global.Tree

     Applies a wrapArray call to an array, making it an immutable ArraySeq suitable for Scala varargs.

     Applies a wrapArray call to an array, making it an immutable ArraySeq suitable for Scala varargs. Don't let a reference type parameter be inferred, in case it's a singleton: apply the element type directly.

     Definition Classes
       TreeGen
104.  def mkZero(tp: Global.Type): Global.Tree
     Definition Classes
       TreeGen
105.  final def ne(arg0: AnyRef): Boolean
     Definition Classes
       AnyRef
106.  def newModule(accessor: Global.Symbol, tpe: Global.Type): Global.Tree
     Definition Classes
       TreeGen
107.  final def notify(): Unit
     Definition Classes
       AnyRef
     Annotations
       @native()
108.  final def notifyAll(): Unit
     Definition Classes
       AnyRef
     Annotations
       @native()
109.  def paramToArg(arg: Global.Ident, isRepeatedParam: Boolean): Global.Tree
     Definition Classes
       TreeGen
110.  def paramToArg(vparam: Global.ValDef): Global.Tree
     Definition Classes
       TreeGen
111.  def paramToArg(vparam: Global.Symbol): Global.Tree
     Definition Classes
       TreeGen
112.  def rootId(name: Global.Name): Global.Select
     Definition Classes
       TreeGen
113.  def rootScalaDot(name: Global.Name): Global.Select
     Definition Classes
       TreeGen
114.  def scalaAnnotationDot(name: Global.Name): Global.Select
     Definition Classes
       TreeGen
115.  def scalaAnyRefConstr: Global.Select
     Definition Classes
       TreeGen
116.  def scalaDot(name: Global.Name): Global.Select
     Definition Classes
       TreeGen
117.  def scalaFunctionConstr(argtpes: List[Global.Tree], restpe: Global.Tree, abstractFun: Boolean): Global.Tree
     Definition Classes
       TreeGen
118.  def stabilize(tree: Global.Tree): Global.Tree
     Definition Classes
       TreeGen
119.  def stableTypeFor(tree: Global.Tree): Global.Type
     Definition Classes
       TreeGen
120.  final def synchronized[T0](arg0: => T0): T0
     Definition Classes
       AnyRef
121.  def toString(): String
     Definition Classes
       AnyRef → Any
122.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws(classOf[java.lang.InterruptedException])
123.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws(classOf[java.lang.InterruptedException])
124.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws(classOf[java.lang.InterruptedException]) @native()
125.  def wildcardStar(tree: Global.Tree): Global.Typed
     Definition Classes
       TreeGen
126.  object Filter
     Definition Classes
       TreeGen
127.  object Yield
     Definition Classes
       TreeGen
128.  object patvarTransformer extends PatvarTransformer
     Definition Classes
       TreeGen
129.  object CODE
     Definition Classes
       TreeDSL

### Inherited from ast.TreeGen

### Inherited from TreeDSL

### Inherited from reflect.internal.TreeGen

### Inherited from AnyRef

### Inherited from Any

### Ungrouped