abstract class TreeBuilder extends AnyRef
Methods for building trees, used in the parser. All the trees returned by this class must be untyped.
- Source
- TreeBuilder.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- TreeBuilder
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TreeBuilder()
Abstract Value Members
- abstract val global: Global
- abstract def source: SourceFile
- abstract def unit: Global.CompilationUnit
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from TreeBuilder to any2stringadd[TreeBuilder] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (TreeBuilder, B)
- Implicit
- This member is added by an implicit conversion from TreeBuilder to ArrowAssoc[TreeBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addEvidenceParams(owner: Global.Name, vparamss: List[List[Global.ValDef]], contextBounds: List[Global.Tree]): List[List[Global.ValDef]]
Append implicit parameter section if
contextBounds
nonempty -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byNameApplication(tpe: Global.Tree): Global.Tree
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def convertToTypeName(t: Global.Tree): Option[Global.RefTree]
-
def
ensuring(cond: (TreeBuilder) ⇒ Boolean, msg: ⇒ Any): TreeBuilder
- Implicit
- This member is added by an implicit conversion from TreeBuilder to Ensuring[TreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (TreeBuilder) ⇒ Boolean): TreeBuilder
- Implicit
- This member is added by an implicit conversion from TreeBuilder to Ensuring[TreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): TreeBuilder
- Implicit
- This member is added by an implicit conversion from TreeBuilder to Ensuring[TreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): TreeBuilder
- Implicit
- This member is added by an implicit conversion from TreeBuilder to Ensuring[TreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TreeBuilder to StringFormat[TreeBuilder] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- implicit def fresh: FreshNameCreator
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeAlternative(ts: List[Global.Tree]): Global.Tree
Create tree for a pattern alternative
- def makeAnnotated(t: Global.Tree, annot: Global.Tree): Global.Tree
-
def
makeBlock(stats: List[Global.Tree]): Global.Tree
Create block of statements
stats
-
def
makeCaseDef(pat: Global.Tree, guard: Global.Tree, rhs: Global.Tree): Global.CaseDef
Create tree for case definition <case pat if guard => rhs>
-
def
makeCatchFromExpr(catchExpr: Global.Tree): Global.CaseDef
Creates tree representing: { case x: Throwable => val catchFn = catchExpr if (catchFn isDefinedAt x) catchFn(x) else throw x }
-
def
makeDoWhile(lname: Global.TermName, body: Global.Tree, cond: Global.Tree): Global.Tree
Create tree representing a do-while loop
-
def
makeFunctionTypeTree(argtpes: List[Global.Tree], restpe: Global.Tree): Global.Tree
Create a tree representing the function type (argtpes) => restpe
- def makeImportSelector(name: Global.Name, nameOffset: Int): Global.ImportSelector
- def makeParam(pname: Global.TermName, tpe: Global.Tree): Global.ValDef
- def makePatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree, rhsPos: Global.Position): List[Global.ValDef]
- final def makePatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree): List[Global.ValDef]
-
def
makePostfixSelect(start0: Int, end: Int, od: Global.Tree, op: Global.Name): Global.Tree
Tree for
od op
, start is start0 if od.pos is borked. - def makeSelfDef(name: Global.TermName, tpt: Global.Tree): Global.ValDef
- def makeSyntheticTypeParam(pname: Global.TypeName, bounds: Global.Tree): Global.TypeDef
- def makeTupleTerm(elems: List[Global.Tree]): Global.Tree
- def makeTupleType(elems: List[Global.Tree]): Global.Tree
-
def
makeWhile(startPos: Int, cond: Global.Tree, body: Global.Tree): Global.Tree
Create tree representing a while loop
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def o2p(offset: Int): Global.Position
- def r2p(start: Int, mid: Int, end: Int): Global.Position
- def repeatedApplication(tpe: Global.Tree): Global.Tree
- def rootScalaDot(name: Global.Name): Global.Select
- def scalaAnyRefConstr: Global.Select
- def scalaDot(name: Global.Name): Global.Select
- def scalaUnitConstr: Global.Select
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (TreeBuilder, B)
- Implicit
- This member is added by an implicit conversion from TreeBuilder to ArrowAssoc[TreeBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler and reflection APIs.