visitor

package
v0.0.0-...-81403d0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Text string
	Node ast.Node
}

Issue representation.

type Visitor

type Visitor struct {
	Issues []Issue
	// contains filtered or unexported fields
}

Visitor holds package and issues.

func New

func New(p *analysis.Pass) *Visitor

New returns prepared visitor.

func (*Visitor) Visit

func (v *Visitor) Visit(node ast.Node) ast.Visitor

Visit implements ast.Visitor.

Jump to

Keyboard shortcuts

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