Lines Matching defs:Walker
352 type Walker struct { struct
353 context *build.Context
354 root string
355 scope []string
356 current *apiPackage
357 deprecated map[token.Pos]bool
358 features map[string]bool // set
359 imported map[string]*apiPackage // packages already imported
360 …dPackages []string // names, omitting "unsafe", internal, and vendored packages
361 importMap map[string]map[string]string // importer dir -> import path -> canonical path
362 importDir map[string]string // canonical import path -> dir
377 func (w *Walker) Features() (fs []string) {
387 func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
476 func (w *Walker) loadImports() {
581 func (w *Walker) Import(name string) (*types.Package, error) {
586 …c (w *Walker) ImportFrom(fromPath, fromDir string, mode types.ImportMode) (*types.Package, error) {
594 func (w *Walker) import_(name string) (*apiPackage, error) {
598 func (w *Walker) importFrom(fromPath, fromDir string, mode types.ImportMode) (*apiPackage, error) {
701 func (w *Walker) pushScope(name string) (popFunc func()) {
726 func (w *Walker) sortedEmbeddeds(typ *types.Interface) []string {
754 func (w *Walker) writeType(buf *bytes.Buffer, typ types.Type) {
877 func (w *Walker) writeSignature(buf *bytes.Buffer, sig *types.Signature) {
894 …w *Walker) writeTypeParams(buf *bytes.Buffer, tparams *types.TypeParamList, withConstraints bool) {
911 func (w *Walker) writeParams(buf *bytes.Buffer, t *types.Tuple, variadic bool) {
927 func (w *Walker) typeString(typ types.Type) string {
933 func (w *Walker) signatureString(sig *types.Signature) string {
939 func (w *Walker) emitObj(obj types.Object) {
968 func (w *Walker) emitType(obj *types.TypeName) {
1020 func (w *Walker) emitStructType(name string, typ *types.Struct) {
1045 func (w *Walker) emitIfaceType(name string, typ *types.Interface) {
1090 func (w *Walker) emitFunc(f *types.Func) {
1101 func (w *Walker) emitMethod(m *types.Selection) {
1126 func (w *Walker) emitf(format string, args ...any) {
1155 func (w *Walker) collectDeprecated() {
1242 func (w *Walker) isDeprecated(obj types.Object) bool {