Documentation ¶
Index ¶
- func MethodOf(typ types.Type, name string) *types.Func
- func ObjectOf(pass *analysis.Pass, pkg, name string) types.Object
- func ObjectOfBFS(pkg *types.Package, path, name string) types.Object
- func TypeOf(pass *analysis.Pass, pkg, name string) types.Type
- func TypeOfBFS(pkg *types.Package, path, name string) types.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectOf ¶
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 TypeOf ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.