locations

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classification

type Classification interface {
	// contains filtered or unexported methods
}

func Classify

func Classify(stack []ast.Node) (c Classification)

Classify classifies the current location based on the ancestor stack. The last node in the stack is the expression to classify.

type InFunc

type InFunc struct {
	Node ast.Node // *ast.FuncDecl or *ast.FuncLit
}

type OtherPkgExpr

type OtherPkgExpr struct{}

type PkgVar

type PkgVar struct {
	Ident *ast.Ident
	Name  string
}

Jump to

Keyboard shortcuts

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