go/ast.SelectorExpr.Sel (field)
38 uses
go/ast (current package)
ast.go#L349: Sel *Ident // field selector
ast.go#L542: func (x *SelectorExpr) End() token.Pos { return x.Sel.End() }
filter.go#L69: return t.Sel
walk.go#L91: Walk(v, n.Sel)
go/doc
exports.go#L261: Sel: ast.NewIdent(typ.Sel.Name),
reader.go#L137: return t.Sel.Name, true
go/parser
parser.go#L579: return &ast.SelectorExpr{X: ident, Sel: sel}
parser.go#L1535: return &ast.SelectorExpr{X: x, Sel: sel}
parser.go#L1764: x = &ast.SelectorExpr{X: x, Sel: sel}
go/printer
nodes.go#L1160: if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line {
nodes.go#L1162: p.setPos(x.Sel.Pos())
nodes.go#L1163: p.print(x.Sel)
nodes.go#L1169: p.setPos(x.Sel.Pos())
nodes.go#L1170: p.print(x.Sel)
go/types
builtins.go#L764: sel := selx.Sel.Name
call.go#L682: sel := e.Sel.Name
call.go#L716: check.errorf(e.Sel, UndeclaredImportedName, "undefined: %s", ast.Expr(e)) // cast to ast.Expr to silence vet
call.go#L729: check.errorf(e.Sel, UndeclaredImportedName, "undefined: %s (but have %s)", ast.Expr(e), exps[0].Name())
call.go#L731: check.errorf(e.Sel, UndeclaredImportedName, "undefined: %s", ast.Expr(e))
call.go#L737: check.errorf(e.Sel, UnexportedName, "name %s not exported by package %s", sel, pkg.name)
call.go#L741: check.recordUse(e.Sel, exp)
call.go#L772: check.dump("%v: unexpected object %v", e.Sel.Pos(), exp)
call.go#L790: check.errorf(e.Sel, UncalledBuiltin, "invalid use of %s in selector expression", x)
call.go#L811: check.errorf(e.Sel, NotAType, "%s is not a type", ast.Expr(e))
call.go#L824: check.errorf(e.Sel, AmbiguousSelector, "ambiguous selector %s.%s", x.expr, sel)
call.go#L830: check.errorf(e.Sel, InvalidMethodExpr, "invalid method expression %s.%s (needs pointer receiver (*%s).%s)", x.typ, sel, x.typ, sel)
call.go#L832: check.errorf(e.Sel, InvalidMethodExpr, "cannot call pointer method %s on %s", sel, x.typ)
call.go#L844: check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (%s)", x.expr, sel, why)
call.go#L857: check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (type %s has no method %s)", x.expr, sel, x.typ, sel)
check.go#L631: return x.Sel
exprstring.go#L70: buf.WriteString(x.Sel.Name)
recording.go#L166: check.recordUse(x.Sel, obj)
struct.go#L191: return e.Sel
golang.org/x/tools/go/types/typeutil
callee.go#L73: return e.Sel
golang.org/x/tools/internal/typesinternal
zerovalue.go#L229: return &ast.SelectorExpr{X: ast.NewIdent(qual(types.NewPackage("unsafe", "unsafe"))), Sel: ast.NewIdent("Pointer")}
zerovalue.go#L308: Sel: ast.NewIdent(t.Obj().Name()),
zerovalue.go#L320: Sel: expr.(*ast.Ident),