TreeCopier
dotty.tools.dotc.ast.Trees.Instance.TreeCopier
A class for copying trees. The copy methods avoid creating a new tree If all arguments stay the same.
Note: Some of the copy methods take a context. These are exactly those methods that are overridden in TypedTreeCopier so that they selectively retype themselves. Retyping needs a context.
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Concrete methods
def Alternative(tree: Instance.this.Tree)(trees: List[Instance.this.Tree])(using Context): Instance.this.Alternative
def ByNameTypeTree(tree: Instance.this.Tree)(result: Instance.this.Tree)(using Context): Instance.this.ByNameTypeTree
Copy Ident or Select trees
Copy Ident or Select trees
Attributes
def SingletonTypeTree(tree: Instance.this.Tree)(ref: Instance.this.Tree)(using Context): Instance.this.SingletonTypeTree
Soucre of the copied tree
Soucre of the copied tree
Attributes
In this article