go/ast.File.Decls (field)

42 uses

	go/ast (current package)
		ast.go#L1037: 	Decls      []Decl          // top-level declarations; or nil
		ast.go#L1046: 	if n := len(f.Decls); n > 0 {
		ast.go#L1047: 		return f.Decls[n-1].End()
		filter.go#L264: 	for _, d := range src.Decls {
		filter.go#L266: 			src.Decls[j] = d
		filter.go#L270: 	src.Decls = src.Decls[0:j]
		filter.go#L360: 		ndecls += len(f.Decls)
		filter.go#L405: 			for _, d := range f.Decls {
		import.go#L16: 	for _, d := range f.Decls {
		walk.go#L353: 		walkDeclList(v, n.Decls)

	go/build
		read.go#L415: 	for _, decl := range info.parsed.Decls {

	go/doc
		example.go#L56: 		for _, decl := range file.Decls {
		example.go#L165: 	for _, decl := range file.Decls {
		example.go#L377: 		Decls:    decls,
		example.go#L393: 	for _, d := range file.Decls {
		example.go#L407: 	f.Decls = decls
		exports.go#L302: 	for _, d := range src.Decls {
		exports.go#L304: 			src.Decls[j] = d
		exports.go#L308: 	src.Decls = src.Decls[0:j]
		reader.go#L506: 	for _, decl := range src.Decls {
		reader.go#L598: 		for _, decl := range f.Decls {

	go/format
		format.go#L120: 	for _, d := range file.Decls {

	go/parser
		parser.go#L2585: 		Decls:      decls,

	go/printer
		nodes.go#L1842: 	p.declList(src.Decls)

	golang.org/x/pkgsite/internal/godoc
		encode_ast.gen.go#L3896: 	if x.Decls != nil {
		encode_ast.gen.go#L3898: 		encode_slice_ast_Decl(e, x.Decls)
		encode_ast.gen.go#L3943: 			decode_slice_ast_Decl(d, &x.Decls)
		godoc.go#L79: 	for _, d := range pf.Decls {
		godoc.go#L94: 	pf.Decls = decls

	golang.org/x/pkgsite/internal/godoc/internal/doc
		example.go#L56: 		for _, decl := range file.Decls {
		example.go#L165: 	for _, decl := range file.Decls {
		example.go#L298: 		Decls:    decls,
		example.go#L510: 	for _, d := range file.Decls {
		example.go#L524: 	f.Decls = decls
		exports.go#L302: 	for _, d := range src.Decls {
		exports.go#L304: 			src.Decls[j] = d
		exports.go#L308: 	src.Decls = src.Decls[0:j]
		reader.go#L510: 	for _, decl := range src.Decls {
		reader.go#L602: 		for _, decl := range f.Decls {