type go/ast.BlockStmt
40 uses
go/ast (current package)
ast.go#L311: Body *BlockStmt // function body
ast.go#L696: BlockStmt struct {
ast.go#L707: Body *BlockStmt
ast.go#L724: Body *BlockStmt // CaseClauses only
ast.go#L732: Body *BlockStmt // CaseClauses only
ast.go#L746: Body *BlockStmt // CommClauses only
ast.go#L755: Body *BlockStmt
ast.go#L765: Body *BlockStmt
ast.go#L783: func (s *BlockStmt) Pos() token.Pos { return s.Lbrace }
ast.go#L822: func (s *BlockStmt) End() token.Pos {
ast.go#L870: func (*BlockStmt) stmtNode() {}
ast.go#L997: Body *BlockStmt // function body; or nil for external (non-Go) function
walk.go#L234: case *BlockStmt:
go/doc
example.go#L116: func exampleOutput(b *ast.BlockStmt, comments []*ast.CommentGroup) (output string, unordered, ok bool) {
example.go#L417: func stripOutputComment(body *ast.BlockStmt, comments []*ast.CommentGroup) (*ast.BlockStmt, []*ast.CommentGroup) {
example.go#L425: newBody := &ast.BlockStmt{
example.go#L437: func lastComment(b *ast.BlockStmt, c []*ast.CommentGroup) (i int, last *ast.CommentGroup) {
go/parser
parser.go#L1305: func (p *parser) parseBody() *ast.BlockStmt {
parser.go#L1314: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L1317: func (p *parser) parseBlockStmt() *ast.BlockStmt {
parser.go#L1326: return &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2264: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2342: body := &ast.BlockStmt{Lbrace: lbrace, List: list, Rbrace: rbrace}
parser.go#L2780: var body *ast.BlockStmt
resolver.go#L323: case *ast.BlockStmt:
resolver.go#L601: func (r *resolver) walkBody(body *ast.BlockStmt) {
go/printer
nodes.go#L1175: func (p *printer) block(b *ast.BlockStmt, nindent int) {
nodes.go#L1383: case *ast.BlockStmt:
nodes.go#L1393: case *ast.BlockStmt, *ast.IfStmt:
nodes.go#L1757: func (p *printer) bodySize(b *ast.BlockStmt, maxSize int) int {
nodes.go#L1788: func (p *printer) funcBody(headerSize int, sep whiteSpace, b *ast.BlockStmt) {
go/types
labels.go#L13: func (check *Checker) labels(body *ast.BlockStmt) {
labels.go#L236: 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#L16: func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
stmt.go#L555: case *ast.BlockStmt:
stmt.go#L577: case *ast.IfStmt, *ast.BlockStmt: