type go/ast.ValueSpec
43 uses
go/ast (current package)
ast.go#L920: ValueSpec struct {
ast.go#L947: func (s *ValueSpec) Pos() token.Pos { return s.Names[0].Pos() }
ast.go#L957: func (s *ValueSpec) End() token.Pos {
ast.go#L971: func (*ValueSpec) specNode() {}
filter.go#L187: case *ValueSpec:
scope.go#L117: case *ValueSpec:
walk.go#L287: case *ValueSpec:
go/doc
example.go#L185: case *ast.ValueSpec:
example.go#L411: case *ast.ValueSpec:
example.go#L446: case *ast.ValueSpec:
exports.go#L214: case *ast.ValueSpec:
exports.go#L275: spec := spec.(*ast.ValueSpec)
filter.go#L27: case *ast.ValueSpec:
reader.go#L266: for _, ident := range s.(*ast.ValueSpec).Names {
reader.go#L284: s, ok := spec.(*ast.ValueSpec)
reader.go#L834: if s, ok := d.Specs[0].(*ast.ValueSpec); ok {
go/parser
parser.go#L2582: spec := &ast.ValueSpec{
resolver.go#L454: spec := spec.(*ast.ValueSpec)
go/printer
nodes.go#L1589: t := s.(*ast.ValueSpec)
nodes.go#L1615: func (p *printer) valueSpec(s *ast.ValueSpec, keepType bool) {
nodes.go#L1697: case *ast.ValueSpec:
nodes.go#L1756: p.valueSpec(s.(*ast.ValueSpec), keepType[i])
printer.go#L1055: case *ast.ValueSpec:
printer.go#L1075: case *ast.ValueSpec:
go/types
decl.go#L341: spec *ast.ValueSpec
decl.go#L347: varDecl struct{ spec *ast.ValueSpec }
decl.go#L369: var last *ast.ValueSpec // last ValueSpec with type or init exprs seen
decl.go#L374: case *ast.ValueSpec:
decl.go#L384: last = new(ast.ValueSpec) // make sure last exists
resolver.go#L55: func (check *Checker) arityMatch(s, init *ast.ValueSpec) {
go.pact.im/x/plumb/internal/discover
discover.go#L220: case *ast.ValueSpec:
discover.go#L364: case *ast.ValueSpec:
discover.go#L381: func scanValueSpec(pkg *Package, gd *ast.GenDecl, s *ast.ValueSpec) ([]*Provider, *diag.Error) {
discover.go#L395: func scanVar(pkg *Package, s *ast.ValueSpec, names []string) ([]*Provider, *diag.Error) {
discover.go#L437: func scanConversion(pkg *Package, s *ast.ValueSpec, ident *ast.Ident, names []string) ([]*Provider, *diag.Error) {
discover.go#L503: func scanConst(pkg *Package, s *ast.ValueSpec, names []string) ([]*Provider, *diag.Error) {
golang.org/x/tools/go/ast/edge
edge.go#L294: ValueSpec_Comment: info[*ast.ValueSpec]("Comment"),
edge.go#L295: ValueSpec_Doc: info[*ast.ValueSpec]("Doc"),
edge.go#L296: ValueSpec_Names: info[*ast.ValueSpec]("Names"),
edge.go#L297: ValueSpec_Type: info[*ast.ValueSpec]("Type"),
edge.go#L298: ValueSpec_Values: info[*ast.ValueSpec]("Values"),
golang.org/x/tools/go/ast/inspector
typeof.go#L212: case *ast.ValueSpec:
walk.go#L277: case *ast.ValueSpec: