analysisutil

package
v0.0.0-...-b2f29f1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodOf

func MethodOf(typ types.Type, name string) *types.Func

func ObjectOf

func ObjectOf(pass *analysis.Pass, pkg, name string) types.Object

copied and modified from https://github.com/gostaticanalysis/analysisutil/blob/ccfdecf515f47e636ba164ce0e5f26810eaf8747/types.go#L18 ObjectOf returns types.Object by given name in the package.

func ObjectOfBFS

func ObjectOfBFS(pkg *types.Package, path, name string) types.Object

func TypeOf

func TypeOf(pass *analysis.Pass, pkg, name string) types.Type

copied and modified from https://github.com/gostaticanalysis/analysisutil/blob/ccfdecf515f47e636ba164ce0e5f26810eaf8747/types.go#L31 TypeOf returns types.Type by given name in the package. TypeOf accepts pointer types such as *T.

func TypeOfBFS

func TypeOfBFS(pkg *types.Package, path, name string) types.Type

Types

This section is empty.

Jump to

Keyboard shortcuts

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