package
0.27.3
Repository: https://github.com/dave/dst.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Decorate decorates an ast.Node and returns a dst.Node.
Decorate decorates a *ast.File and returns a *dst.File.
Fprint uses format.Node to print a *dst.File to a writer.
No description provided by the author
NewDecorator returns a new decorator.
NewDecoratorFromPackage returns a new decorator configured to decorate files in pkg.
NewDecoratorWithImports returns a new decorator with import management enabled.
NewRestorer returns a restorer.
NewRestorerWithImports returns a restorer with import management attributes set.
Parse uses parser.ParseFile to parse and decorate a Go source file.
ParseDir uses parser.ParseDir to parse and decorate a directory containing Go source.
ParseFile uses parser.ParseFile to parse and decorate a Go source file.
Print uses format.Node to print a *dst.File to stdout.
RestoreFile restores a *dst.File to a *token.FileSet and a *ast.File.

# Structs

AstMap holds a record of the mapping from dst to ast nodes, objects and scopes.
Decorator converts ast nodes into dst nodes, and converts decoration info from the ast fileset to the dst nodes.
DstMap holds a record of the mapping from ast to dst nodes, objects and scopes.
FileRestorer restores a specific file with extra options.
Map holds a record of the mapping between ast and dst nodes, objects and scopes.
No description provided by the author
Restorer restores dst.Node to ast.Node.