Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateMovedNodes ¶
func AnnotateMovedNodes( decorator *decorator.Decorator, file *dst.File, newRestorer func(string) *decorator.FileRestorer, ) error
AnnotateMovedNodes adds `//line` directives to the provided `*dst.File` to adjust source location information of each AST node that exists in the original source file to its location there, and marks other nodes as originating from `<generated>`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.