class ParserTreeBuilder extends TreeBuilder
- Alphabetic
- By Inheritance
- ParserTreeBuilder
- TreeBuilder
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ParserTreeBuilder()
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 ParserTreeBuilder toany2stringadd[ParserTreeBuilder] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ParserTreeBuilder, B)
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toArrowAssoc[ParserTreeBuilder] 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
nonemptyAppend implicit parameter section if
contextBounds
nonempty- Definition Classes
- TreeBuilder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byNameApplication(tpe: Global.Tree): Global.Tree
- Definition Classes
- TreeBuilder
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def convertToTypeName(t: Global.Tree): Option[Global.RefTree]
- Definition Classes
- TreeBuilder
- def ensuring(cond: (ParserTreeBuilder) => Boolean, msg: => Any): ParserTreeBuilder
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toEnsuring[ParserTreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ParserTreeBuilder) => Boolean): ParserTreeBuilder
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toEnsuring[ParserTreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ParserTreeBuilder
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toEnsuring[ParserTreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ParserTreeBuilder
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toEnsuring[ParserTreeBuilder] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit def fresh: FreshNameCreator
- Definition Classes
- TreeBuilder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val global: Parsers.global.type
- Definition Classes
- ParserTreeBuilder → TreeBuilder
- 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
Create tree for a pattern alternative
- Definition Classes
- TreeBuilder
- def makeAnnotated(t: Global.Tree, annot: Global.Tree): Global.Tree
- Definition Classes
- TreeBuilder
- def makeBlock(stats: List[Global.Tree]): Global.Tree
Create block of statements
stats
Create block of statements
stats
- Definition Classes
- TreeBuilder
- def makeCaseDef(pat: Global.Tree, guard: Global.Tree, rhs: Global.Tree): Global.CaseDef
Create tree for case definition <case pat if guard => rhs>
Create tree for case definition <case pat if guard => rhs>
- Definition Classes
- TreeBuilder
- 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 }
Creates tree representing: { case x: Throwable => val catchFn = catchExpr if (catchFn isDefinedAt x) catchFn(x) else throw x }
- Definition Classes
- TreeBuilder
- def makeCatchFromFunc(catchFn: Global.Tree): Global.CaseDef
Creates tree representing: { case x: Throwable => catchExpr(x) }
Creates tree representing: { case x: Throwable => catchExpr(x) }
- Definition Classes
- TreeBuilder
- def makeDoWhile(lname: Global.TermName, body: Global.Tree, cond: Global.Tree): Global.Tree
Create tree representing a do-while loop
Create tree representing a do-while loop
- Definition Classes
- TreeBuilder
- def makeFunctionTypeTree(argtpes: List[Global.Tree], restpe: Global.Tree): Global.Tree
Create a tree representing the function type (argtpes) => restpe
Create a tree representing the function type (argtpes) => restpe
- Definition Classes
- TreeBuilder
- def makeImportSelector(name: Global.Name, nameOffset: Int): Global.ImportSelector
- Definition Classes
- TreeBuilder
- def makeMatchFromExpr(catchExpr: Global.Tree): List[Global.CaseDef]
At parser, rejigger non-case catch expression.
At parser, rejigger non-case catch expression.
Match is eliminated by unwrapping. Other expression becomes a single CaseDef with empty pattern and expr tree as RHS.
- Definition Classes
- TreeBuilder
- def makeParam(pname: Global.TermName, tpe: Global.Tree): Global.ValDef
- Definition Classes
- TreeBuilder
- def makePatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree, rhsPos: Global.Position): List[Global.ValDef]
- Definition Classes
- TreeBuilder
- final def makePatDef(mods: Global.Modifiers, pat: Global.Tree, rhs: Global.Tree): List[Global.ValDef]
- Definition Classes
- TreeBuilder
- def makePostfixSelect(start: Int, end: Int, od: Global.Tree, op: Global.Name): Global.Tree
Tree for
od op
, start is start0 if od.pos is borked.Tree for
od op
, start is start0 if od.pos is borked.- Definition Classes
- TreeBuilder
- def makeSelfDef(name: Global.TermName, tpt: Global.Tree): Global.ValDef
- Definition Classes
- TreeBuilder
- def makeSyntheticTypeParam(pname: Global.TypeName, bounds: Global.Tree): Global.TypeDef
- Definition Classes
- TreeBuilder
- def makeTupleTerm(elems: List[Global.Tree]): Global.Tree
- Definition Classes
- TreeBuilder
- def makeTupleType(elems: List[Global.Tree]): Global.Tree
- Definition Classes
- TreeBuilder
- def makeWhile(startPos: Int, cond: Global.Tree, body: Global.Tree): Global.Tree
Create tree representing a while loop
Create tree representing a while loop
- Definition Classes
- TreeBuilder
- 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
- Definition Classes
- TreeBuilder
- def r2p(start: Int, mid: Int, end: Int): Global.Position
- Definition Classes
- TreeBuilder
- def repeatedApplication(tpe: Global.Tree): Global.Tree
- Definition Classes
- TreeBuilder
- def rootScalaDot(name: Global.Name): Global.Select
- Definition Classes
- TreeBuilder
- def scalaAnyRefConstr: Global.Select
- Definition Classes
- TreeBuilder
- def scalaDot(name: Global.Name): Global.Select
- Definition Classes
- TreeBuilder
- def scalaUnitConstr: Global.Select
- Definition Classes
- TreeBuilder
- def source: SourceFile
- Definition Classes
- ParserTreeBuilder → TreeBuilder
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unit: Global.CompilationUnit
- Definition Classes
- ParserTreeBuilder → TreeBuilder
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toStringFormat[ParserTreeBuilder] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ParserTreeBuilder, B)
- Implicit
- This member is added by an implicit conversion from ParserTreeBuilder toArrowAssoc[ParserTreeBuilder] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.