errdefs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defined

func Defined(node ast.Node) diagnostic.Option

func DefinedMaybeImported

func DefinedMaybeImported(scope *ast.Scope, ie *ast.IdentExpr, decl ast.Node) []diagnostic.Option

func Imported

func Imported(node ast.Node) diagnostic.Option

func IsNotExist

func IsNotExist(err error) bool

func OneOfKinds

func OneOfKinds(kinds []ast.Kind) string

func WithBindCacheMount

func WithBindCacheMount(as, cache ast.Node) error

func WithCallImport

func WithCallImport(ident ast.Node, decl ast.Node) error

func WithCallUnexported

func WithCallUnexported(ref ast.Node, opts ...diagnostic.Option) error

func WithDeprecated

func WithDeprecated(mod *ast.Module, node ast.Node, format string, a ...interface{}) error

func WithDockerEngineUnsupported

func WithDockerEngineUnsupported(decl ast.Node) error

func WithDuplicates

func WithDuplicates(dups []ast.Node) error

func WithImportPathNotExist

func WithImportPathNotExist(err error, expr ast.Node, filename string) error

func WithInternalErrorf

func WithInternalErrorf(node ast.Node, format string, a ...interface{}) error

func WithInvalidCompileTarget

func WithInvalidCompileTarget(ident ast.Node) error

func WithInvalidImageRef

func WithInvalidImageRef(err error, arg ast.Node, ref string) error

func WithInvalidNetworkMode

func WithInvalidNetworkMode(arg ast.Node, mode string, modes []string) error

func WithInvalidSecurityMode

func WithInvalidSecurityMode(arg ast.Node, mode string, modes []string) error

func WithInvalidSharingMode

func WithInvalidSharingMode(arg ast.Node, mode string, modes []string) error

func WithNoBindClosure

func WithNoBindClosure(as, option ast.Node) error

func WithNoBindEffects

func WithNoBindEffects(callee, as ast.Node, opts ...diagnostic.Option) error

func WithNoBindTarget

func WithNoBindTarget(as ast.Node) error

func WithNotImport

func WithNotImport(ie *ast.IdentExpr, decl ast.Node) error

func WithNumArgs

func WithNumArgs(callee ast.Node, expected, actual int, opts ...diagnostic.Option) error

func WithUndefinedBindTarget

func WithUndefinedBindTarget(callee, target ast.Node) error

func WithUndefinedIdent

func WithUndefinedIdent(ident ast.Node, suggested *ast.Object, opts ...diagnostic.Option) error

func WithWrongType

func WithWrongType(expr ast.Node, expected []ast.Kind, actual ast.Kind, opts ...diagnostic.Option) error

Types

type ErrAbort

type ErrAbort struct {
	Err     error
	NumErrs int
}

func WithAbort

func WithAbort(err error, numErrs int) *ErrAbort

func (*ErrAbort) Error

func (e *ErrAbort) Error() string

func (*ErrAbort) Unwrap

func (e *ErrAbort) Unwrap() error

type ErrModule

type ErrModule struct {
	Module *ast.Module
	Err    error
}

func (*ErrModule) Error

func (e *ErrModule) Error() string

func (*ErrModule) Unwrap

func (e *ErrModule) Unwrap() error

Jump to

Keyboard shortcuts

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