Traverse pattern and collect all variable names with their types in buffer The variables keep their positions; whereas the pattern is converted to be synthetic for all nodes that contain a variable position.
Append implicit parameter section if contextBounds
nonempty
Create tree for a pattern alternative
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.
Create a tree representing an assignment <lhs = rhs>
Create tree representing (unencoded) binary operation expression or pattern.
Create block of statements stats
Create tree for case definition <case pat if guard => rhs>
Creates tree representing: { case x: Throwable => val catchFn = catchExpr if (catchFn isDefinedAt x) catchFn(x) else throw x }
Create tree representing a do-while loop
Create tree for for-do comprehension <for (enums) body>
Create tree for for-yield comprehension <for (enums) yield body>
Create a tree representing the function type (argtpes) => restpe
Create tree for for-comprehension generator <val pat0 <- rhs0>
A type tree corresponding to (possibly unary) intersection type
Create tree for a lifted expression XX-LIFTING
Create positioned tree representing an object creation <new parents { stats }
Create positioned tree representing an object creation <new parents { stats }
the position of the new
the position of the anonymous class starting with parents
Create tree for pattern definition <mods val pat0 = rhs>
Create tree for pattern definition <val pat0 = rhs>
Tree for od op
, start is start0 if od.
Tree for od op
, start is start0 if od.pos is borked.
Create visitor <x => x match cases>
Create visitor <x => x match cases>
Create tree representing a while loop
(treeBuilder: StringAdd).self
(treeBuilder: StringFormat).self
(treeBuilder: ArrowAssoc[TreeBuilder]).x
(Since version 2.10.0) Use leftOfArrow
instead
(treeBuilder: Ensuring[TreeBuilder]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Methods for building trees, used in the parser. All the trees returned by this class must be untyped.