output

package
v0.0.0-...-46be04c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader interface {
	ReadFile(node *syntax.Node) ([]byte, error)
}

type HtmlPrinter

type HtmlPrinter struct {
	*TextPrinter
	// contains filtered or unexported fields
}

func NewHtmlPrinter

func NewHtmlPrinter(w io.Writer, fr FileReader) *HtmlPrinter

func (*HtmlPrinter) Finish

func (*HtmlPrinter) Finish()

func (*HtmlPrinter) Print

func (p *HtmlPrinter) Print(dups [][]*syntax.Node)

type PlumbingPrinter

type PlumbingPrinter struct {
	*TextPrinter
}

func NewPlumbingPrinter

func NewPlumbingPrinter(w io.Writer, fr FileReader) *PlumbingPrinter

func (*PlumbingPrinter) Finish

func (p *PlumbingPrinter) Finish()

func (*PlumbingPrinter) Print

func (p *PlumbingPrinter) Print(dups [][]*syntax.Node)

type Printer

type Printer interface {
	Print(dups [][]*syntax.Node)
	SPrint(dups [][]*syntax.Node) []string
	Finish()
}

type TextPrinter

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

func NewTextPrinter

func NewTextPrinter(w io.Writer, fr FileReader) *TextPrinter

func (*TextPrinter) Finish

func (p *TextPrinter) Finish()

func (*TextPrinter) Print

func (p *TextPrinter) Print(dups [][]*syntax.Node)

func (*TextPrinter) SPrint

func (p *TextPrinter) SPrint(dups [][]*syntax.Node) (copys []string)

Jump to

Keyboard shortcuts

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