type go/ast.BlockStmt
40 uses
go/ast (current package)
ast.go#L323: Body *BlockStmt // function body
ast.go#L701: BlockStmt struct {
ast.go#L712: Body *BlockStmt
ast.go#L729: Body *BlockStmt // CaseClauses only
ast.go#L737: Body *BlockStmt // CaseClauses only
ast.go#L751: Body *BlockStmt // CommClauses only
ast.go#L760: Body *BlockStmt
ast.go#L771: Body *BlockStmt
ast.go#L789: func (s *BlockStmt) Pos() token.Pos { return s.Lbrace }
ast.go#L828: func (s *BlockStmt) End() token.Pos {
ast.go#L875: func (*BlockStmt) stmtNode() {}
ast.go#L999: Body *BlockStmt // function body; or nil for external (non-Go) function
walk.go#L210: case *BlockStmt:
go/doc
example.go#L117: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
example.go#L576: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
example.go#L584: newBody := &ast.BlockStmt{
example.go#L596: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
go/parser
parser.go#L1409: func (p *parser) parseBody() *ast.BlockStmt {
parser.go#L1418: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L1421: func (p *parser) parseBlockStmt() *ast.BlockStmt {
parser.go#L1430: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2262: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2336: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2788: var body *ast.BlockStmt
resolver.go#L327: case *ast.BlockStmt:
resolver.go#L605: func (r *resolver) walkBody(body *ast.BlockStmt) {
go/printer
nodes.go#L1227: func (p *printer) block(b *ast.BlockStmt, nindent int) {
nodes.go#L1444: case *ast.BlockStmt:
nodes.go#L1454: case *ast.BlockStmt, *ast.IfStmt:
nodes.go#L1842: func (p *printer) bodySize(b *ast.BlockStmt, maxSize int) int {
nodes.go#L1872: func (p *printer) funcBody(headerSize int, sep whiteSpace, b *ast.BlockStmt) {
go/types
labels.go#L15: func (check *Checker) labels(body *ast.BlockStmt) {
labels.go#L234: case *ast.BlockStmt:
return.go#L44: case *ast.BlockStmt:
return.go#L89: func (check *Checker) isTerminatingSwitch(body *ast.BlockStmt, label string) bool {
return.go#L133: case *ast.BlockStmt:
stmt.go#L19: func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
stmt.go#L609: case *ast.BlockStmt:
stmt.go#L631: case *ast.IfStmt, *ast.BlockStmt: