type go/ast.BlockStmt
43 uses
go/ast (current package)
ast.go#L326: Body *BlockStmt // function body
ast.go#L712: BlockStmt struct {
ast.go#L723: Body *BlockStmt
ast.go#L740: Body *BlockStmt // CaseClauses only
ast.go#L748: Body *BlockStmt // CaseClauses only
ast.go#L762: Body *BlockStmt // CommClauses only
ast.go#L771: Body *BlockStmt
ast.go#L782: Body *BlockStmt
ast.go#L800: func (s *BlockStmt) Pos() token.Pos { return s.Lbrace }
ast.go#L839: func (s *BlockStmt) End() token.Pos {
ast.go#L886: func (*BlockStmt) stmtNode() {}
ast.go#L1010: Body *BlockStmt // function body; or nil for external (non-Go) function
walk.go#L210: case *BlockStmt:
go/doc
example.go#L119: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
example.go#L575: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
example.go#L583: newBody := &ast.BlockStmt{
example.go#L595: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
go/parser
parser.go#L1425: func (p *parser) parseBody() *ast.BlockStmt {
parser.go#L1434: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L1437: func (p *parser) parseBlockStmt() *ast.BlockStmt {
parser.go#L1446: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2282: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2356: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2812: 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#L18: func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
stmt.go#L599: case *ast.BlockStmt:
stmt.go#L621: case *ast.IfStmt, *ast.BlockStmt:
golang.org/x/tools/go/ast/edge
edge.go#L201: BlockStmt_List: info[*ast.BlockStmt]("List"),
golang.org/x/tools/go/ast/inspector
typeof.go#L116: case *ast.BlockStmt:
walk.go#L200: case *ast.BlockStmt: