lineinfo

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL