The PlainText "tree" provides a hook into the source code generation.
When a PlainText tree occurs during source code generation, its print
method is called with the current AbstractPrinter#PrintingContext. The
result is inserted into the generated source code.
For some use cases (blank line, raw and indented string) implementations
already exist in the PlainText object.
Note that PlainText trees should never be allowed to escape the Scala
refactoring library, so be careful when using compiler utilities to
transform trees.
Linear Supertypes
nsc.Global.Tree, nsc.Global.Attachable, nsc.Global.TreeContextApiImpl, nsc.Global.TreeApi, Product, Equals, AnyRef, Any
The PlainText "tree" provides a hook into the source code generation. When a PlainText tree occurs during source code generation, its
print
method is called with the current AbstractPrinter#PrintingContext. The result is inserted into the generated source code.For some use cases (blank line, raw and indented string) implementations already exist in the
PlainText
object.Note that PlainText trees should never be allowed to escape the Scala refactoring library, so be careful when using compiler utilities to transform trees.