rewrite

package
v1.41.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rewriter

type Rewriter struct {
	// contains filtered or unexported fields
}

func New

func New(data []byte, base int) *Rewriter

func (*Rewriter) Append

func (r *Rewriter) Append(data []byte)

func (*Rewriter) Data

func (r *Rewriter) Data() []byte

func (*Rewriter) Delete

func (r *Rewriter) Delete(start, end token.Pos)

func (*Rewriter) Insert

func (r *Rewriter) Insert(start token.Pos, data []byte)

func (*Rewriter) Replace

func (r *Rewriter) Replace(start, end token.Pos, data []byte)

func (*Rewriter) ReplaceNode

func (r *Rewriter) ReplaceNode(node ast.Node, data []byte)

Jump to

Keyboard shortcuts

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