org.scalamacros.paradise.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.

Self Type
TreeBuilder
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
Learn more about member selection
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: scala.tools.nsc.Global.CompilationUnit

Concrete Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def addEvidenceParams(owner: scala.tools.nsc.Global.Name, vparamss: List[List[scala.tools.nsc.Global.ValDef]], contextBounds: List[scala.tools.nsc.Global.Tree]): List[List[scala.tools.nsc.Global.ValDef]]

    Append implicit parameter section if contextBounds nonempty

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def byNameApplication(tpe: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. lazy val compat: SymbolTableCompat { val global: TreeBuilder.this.global.type }

  11. def convertToTypeName(t: scala.tools.nsc.Global.Tree): Option[scala.tools.nsc.Global.RefTree]

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. implicit def fresh: FreshNameCreator

  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def makeAlternative(ts: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.Tree

    Create tree for a pattern alternative

  20. def makeAnnotated(t: scala.tools.nsc.Global.Tree, annot: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  21. def makeBinop(isExpr: Boolean, left: scala.tools.nsc.Global.Tree, op: scala.tools.nsc.Global.TermName, right: scala.tools.nsc.Global.Tree, opPos: Position, targs: List[scala.tools.nsc.Global.Tree] = Nil): scala.tools.nsc.Global.Tree

    Create tree representing (unencoded) binary operation expression or pattern.

  22. def makeBlock(stats: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.Tree

    Create block of statements stats

  23. def makeCaseDef(pat: scala.tools.nsc.Global.Tree, guard: scala.tools.nsc.Global.Tree, rhs: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.CaseDef

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

  24. def makeCatchFromExpr(catchExpr: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.CaseDef

    Creates tree representing: { case x: Throwable => val catchFn = catchExpr if (catchFn isDefinedAt x) catchFn(x) else throw x }

  25. def makeDoWhile(lname: scala.tools.nsc.Global.TermName, body: scala.tools.nsc.Global.Tree, cond: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Create tree representing a do-while loop

  26. def makeFunctionTypeTree(argtpes: List[scala.tools.nsc.Global.Tree], restpe: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

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

  27. def makeImportSelector(name: scala.tools.nsc.Global.Name, nameOffset: Int): scala.tools.nsc.Global.ImportSelector

  28. def makeParam(pname: scala.tools.nsc.Global.TermName, tpe: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.ValDef

  29. def makePatDef(mods: scala.tools.nsc.Global.Modifiers, pat: scala.tools.nsc.Global.Tree, rhs: scala.tools.nsc.Global.Tree): List[scala.tools.nsc.Global.ValDef]

  30. def makePostfixSelect(start0: Int, end: Int, od: scala.tools.nsc.Global.Tree, op: scala.tools.nsc.Global.Name): scala.tools.nsc.Global.Tree

    Tree for od op, start is start0 if od.

    Tree for od op, start is start0 if od.pos is borked.

  31. def makeSelfDef(name: scala.tools.nsc.Global.TermName, tpt: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.ValDef

  32. def makeSyntheticTypeParam(pname: scala.tools.nsc.Global.TypeName, bounds: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.TypeDef

  33. def makeTupleTerm(elems: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.Tree

  34. def makeTupleType(elems: List[scala.tools.nsc.Global.Tree]): scala.tools.nsc.Global.Tree

  35. def makeWhile(startPos: Int, cond: scala.tools.nsc.Global.Tree, body: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

    Create tree representing a while loop

  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. final def notify(): Unit

    Definition Classes
    AnyRef
  38. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  39. def o2p(offset: Int): Position

  40. def r2p(start: Int, mid: Int, end: Int): Position

  41. def repeatedApplication(tpe: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  42. def rootScalaDot(name: scala.tools.nsc.Global.Name): scala.tools.nsc.Global.Select

  43. def scalaAnyRefConstr: scala.tools.nsc.Global.Select

  44. def scalaDot(name: scala.tools.nsc.Global.Name): scala.tools.nsc.Global.Select

  45. def scalaUnitConstr: scala.tools.nsc.Global.Select

  46. def stripParens(t: scala.tools.nsc.Global.Tree): scala.tools.nsc.Global.Tree

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped