checker

package
v0.0.0-...-2c9b28d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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 Checker

type Checker struct {
	Analyzer *analysis.Analyzer
	//pkg          		*packages.Package
	//pass         		*analysis.Pass
	ObjectFacts map[objectFactKey]analysis.Fact
}

func InitChecker

func InitChecker(analyzer *analysis.Analyzer) *Checker

func (*Checker) ExportObjectFact

func (c *Checker) ExportObjectFact(obj types.Object, fact analysis.Fact)

func (*Checker) ImportObjectFact

func (c *Checker) ImportObjectFact(obj types.Object, fact analysis.Fact) bool

type GlobalVar

type GlobalVar struct {
	Val string
}

func (*GlobalVar) AFact

func (*GlobalVar) AFact()

func (*GlobalVar) String

func (*GlobalVar) String() string

type LocalVar

type LocalVar struct {
	Vals []string
}

func (*LocalVar) AFact

func (*LocalVar) AFact()

func (*LocalVar) String

func (*LocalVar) String() string

Jump to

Keyboard shortcuts

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