type go/ast.BlockStmt
40 uses
go/ast (current package)
ast.go#L327: Body *BlockStmt // function body
ast.go#L705: BlockStmt struct {
ast.go#L716: Body *BlockStmt
ast.go#L733: Body *BlockStmt // CaseClauses only
ast.go#L741: Body *BlockStmt // CaseClauses only
ast.go#L755: Body *BlockStmt // CommClauses only
ast.go#L764: Body *BlockStmt
ast.go#L775: Body *BlockStmt
ast.go#L793: func (s *BlockStmt) Pos() token.Pos { return s.Lbrace }
ast.go#L832: func (s *BlockStmt) End() token.Pos {
ast.go#L879: func (*BlockStmt) stmtNode() {}
ast.go#L1003: 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#L573: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
example.go#L581: newBody := &ast.BlockStmt{
example.go#L593: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
go/parser
parser.go#L1439: func (p *parser) parseBody() *ast.BlockStmt {
parser.go#L1448: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L1451: func (p *parser) parseBlockStmt() *ast.BlockStmt {
parser.go#L1460: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2292: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2366: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2820: 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: