Packages

c

scala.tools.nsc.ast.parser

TreeBuilder

abstract class TreeBuilder extends AnyRef

Methods for building trees, used in the parser. All the trees returned by this class must be untyped.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeBuilder()

Abstract Value Members

  1. abstract val global: Global
  2. abstract def source: SourceFile
  3. abstract def unit: Global.CompilationUnit

Concrete 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. 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

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def byNameApplication(tpe: Global.Tree): Global.Tree
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. def convertToTypeName(t: Global.Tree): Option[Global.RefTree]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. implicit def fresh: FreshNameCreator
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def makeAlternative(ts: List[Global.Tree]): Global.Tree

    Create tree for a pattern alternative

  17. def makeAnnotated(t: Global.Tree, annot: Global.Tree): Global.Tree
  18. def makeBlock(stats: List[Global.Tree]): Global.Tree

    Create block of statements stats

  19. def makeCaseDef(pat: Global.Tree, guard: Global.Tree, rhs: Global.Tree): Global.CaseDef

    Create tree for case definition <case pat if guard => rhs>

  20. 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 }

  21. def makeDoWhile(lname: Global.TermName, body: Global.Tree, cond: Global.Tree): Global.Tree

    Create tree representing a do-while loop

  22. def makeFunctionTypeTree(argtpes: List[Global.Tree], restpe: Global.Tree): Global.Tree

    Create a tree representing the function type (argtpes) => restpe

  23. def makeImportSelector(name: Global.Name, nameOffset: Int): Global.ImportSelector
  24. def makeParam(pname: Global.TermName, tpe: Global.Tree): Global.ValDef
  25. def makePatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree): List[Global.ValDef]
  26. 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.

  27. def makeSelfDef(name: Global.TermName, tpt: Global.Tree): Global.ValDef
  28. def makeSyntheticTypeParam(pname: Global.TypeName, bounds: Global.Tree): Global.TypeDef
  29. def makeTupleTerm(elems: List[Global.Tree]): Global.Tree
  30. def makeTupleType(elems: List[Global.Tree]): Global.Tree
  31. def makeWhile(startPos: Int, cond: Global.Tree, body: Global.Tree): Global.Tree

    Create tree representing a while loop

  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def o2p(offset: Int): Global.Position
  36. def r2p(start: Int, mid: Int, end: Int): Global.Position
  37. def repeatedApplication(tpe: Global.Tree): Global.Tree
  38. def rootScalaDot(name: Global.Name): Global.Select
  39. def scalaAnyRefConstr: Global.Select
  40. def scalaDot(name: Global.Name): Global.Select
  41. def scalaUnitConstr: Global.Select
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped