analysisinternal

package
v0.0.0-...-3999d51 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package analysisinternal exposes internal-only fields from go/analysis.

Index

Constants

This section is empty.

Variables

View Source
var GetTypeErrors = func(p interface{}) []types.Error { return nil }
View Source
var SetTypeErrors = func(p interface{}, errors []types.Error) {}

Functions

func TypeErrorEndPos

func TypeErrorEndPos(fset *token.FileSet, src []byte, start token.Pos) token.Pos

func ZeroValue

func ZeroValue(fset *token.FileSet, f *ast.File, pkg *types.Package, typ types.Type) ast.Expr

Types

type TypeErrorPass

type TypeErrorPass string
const (
	NoNewVars      TypeErrorPass = "nonewvars"
	NoResultValues TypeErrorPass = "noresultvalues"
	UndeclaredName TypeErrorPass = "undeclaredname"
)

Jump to

Keyboard shortcuts

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