type go/types.Selection
23 uses
go/types (current package)
api.go#L280: Selections map[*ast.SelectorExpr]*Selection
iter.go#L112: func (s *MethodSet) Methods() iter.Seq[*Selection] {
iter.go#L113: return func(yield func(method *Selection) bool) {
methodset.go#L19: list []*Selection
methodset.go#L40: func (s *MethodSet) At(i int) *Selection { return s.list[i] }
methodset.go#L43: func (s *MethodSet) Lookup(pkg *Package, name string) *Selection {
methodset.go#L196: var list []*Selection
methodset.go#L213: type methodSet map[string]*Selection // a nil entry indicates a name collision
methodset.go#L240: s[key] = &Selection{MethodVal, nil, f, index, indirect}
recording.go#L168: m[x] = &Selection{kind, recv, obj, index, indirect}
selection.go#L75: type Selection struct {
selection.go#L84: func (s *Selection) Kind() SelectionKind { return s.kind }
selection.go#L87: func (s *Selection) Recv() Type { return s.recv }
selection.go#L91: func (s *Selection) Obj() Object { return s.obj }
selection.go#L95: func (s *Selection) Type() Type {
selection.go#L137: func (s *Selection) Index() []int { return s.index }
selection.go#L146: func (s *Selection) Indirect() bool { return s.indirect }
selection.go#L148: func (s *Selection) String() string { return SelectionString(s, nil) }
selection.go#L159: func SelectionString(s *Selection, qf Qualifier) string {
golang.org/x/tools/go/packages
packages.go#L1193: Selections: make(map[*ast.SelectorExpr]*types.Selection),
golang.org/x/tools/go/types/typeutil
ui.go#L27: func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Selection {
ui.go#L33: var result []*types.Selection
golang.org/x/tools/internal/typesinternal
types.go#L151: Selections: map[*ast.SelectorExpr]*types.Selection{},