checker

package
v0.0.0-...-5b61ed2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignmentChecker

type AssignmentChecker struct {
	Pkg         *loader.PackageInfo
	PosHelper   IPositionHelper
	Logger      lg.ILogger
	TypeToCheck string
}

func (*AssignmentChecker) Run

func (ac *AssignmentChecker) Run(node ast.Node) (proceed bool)

type IPositionHelper

type IPositionHelper interface {
	GetContentByPosition(node ast.Node) (string, error)
	GetStringPosition(pos token.Pos) string
}

type SwitchChecker

type SwitchChecker struct {
	Pkg       *loader.PackageInfo
	PosHelper IPositionHelper
	Logger    lg.ILogger
}

func (*SwitchChecker) Run

func (sc *SwitchChecker) Run(node ast.Node)

Jump to

Keyboard shortcuts

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