go/ast.SelectorExpr.Sel (field)

37 uses

	go/ast (current package)
		ast.go#L345: 		Sel *Ident // field selector
		ast.go#L538: func (x *SelectorExpr) End() token.Pos   { return x.Sel.End() }
		filter.go#L66: 			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#L565: 		return &ast.SelectorExpr{X: ident, Sel: sel}
		parser.go#L1505: 	return &ast.SelectorExpr{X: x, Sel: sel}
		parser.go#L1734: 				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#L724: 		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#L725: 						check.errorf(e.Sel, UndeclaredImportedName, "undefined: %s", ast.Expr(e))
		call.go#L730: 					check.errorf(e.Sel, UnexportedName, "name %s not exported by package %s", sel, pkg.name)
		call.go#L734: 			check.recordUse(e.Sel, exp)
		call.go#L765: 				check.dump("%v: unexpected object %v", e.Sel.Pos(), exp)
		call.go#L783: 		check.errorf(e.Sel, UncalledBuiltin, "invalid use of %s in selector expression", x)
		call.go#L804: 		check.errorf(e.Sel, NotAType, "%s is not a type", ast.Expr(e))
		call.go#L817: 			check.errorf(e.Sel, AmbiguousSelector, "ambiguous selector %s.%s", x.expr, sel)
		call.go#L823: 				check.errorf(e.Sel, InvalidMethodExpr, "invalid method expression %s.%s (needs pointer receiver (*%s).%s)", x.typ, sel, x.typ, sel)
		call.go#L825: 				check.errorf(e.Sel, InvalidMethodExpr, "cannot call pointer method %s on %s", sel, x.typ)
		call.go#L837: 		check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (%s)", x.expr, sel, why)
		call.go#L850: 			check.errorf(e.Sel, MissingFieldOrMethod, "%s.%s undefined (type %s has no method %s)", x.expr, sel, x.typ, sel)
		check.go#L598: 		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),