stringintconv

Imports

Imports #

_ "embed"
"fmt"
"go/ast"
"go/types"
"strings"
"golang.org/x/tools/go/analysis"
"golang.org/x/tools/go/analysis/passes/inspect"
"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
"golang.org/x/tools/go/ast/inspector"
"golang.org/x/tools/internal/analysisinternal"
"golang.org/x/tools/internal/typeparams"

Constants & Variables

Analyzer var #

var Analyzer = *ast.UnaryExpr

doc var #

go:embed doc.go

var doc string

Functions

describe function #

describe returns a string describing the type typ contained within the type set of inType. If non-empty, inName is used as the name of inType (this is necessary so that we can use alias type names that may not be reachable from inType itself).

func describe(typ types.Type, inType types.Type, inName string) string

run function #

func run(pass *analysis.Pass) (interface{}, error)

structuralTypes function #

func structuralTypes(t types.Type) ([]types.Type, error)

typeName function #

func typeName(t types.Type) string

Generated with Arrow