Dumper
class Dumper(appendable: Appendable = StringBuilder(), withExtras: Boolean = true, withProperties: Boolean = true) : Visitor
Utility class for dumping AST.
Example usage:
Dumper.dump(node)
Content copied to clipboard
Sample output for the code val x = ""
:
Node.KotlinFile
Node.Declaration.PropertyDeclaration
Node.Keyword.Val{text="val"}
Node.Variable
Node.Expression.NameExpression{text="x"}
Node.Expression.StringLiteralExpression{raw=false}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(appendable: Appendable = StringBuilder(), withExtras: Boolean = true, withProperties: Boolean = true)