type go/ast.LabeledStmt
31 uses
go/ast (current package)
ast.go#L647: LabeledStmt struct {
ast.go#L791: func (s *LabeledStmt) Pos() token.Pos { return s.Label.Pos() }
ast.go#L818: func (s *LabeledStmt) End() token.Pos { return s.Stmt.End() }
ast.go#L877: func (*LabeledStmt) stmtNode() {}
scope.go#L131: case *LabeledStmt:
walk.go#L178: case *LabeledStmt:
go/parser
parser.go#L1974: stmt := &ast.LabeledStmt{Label: label, Colon: colon, Stmt: p.parseStmt()}
parser.go#L2462: if _, isLabeledStmt := s.(*ast.LabeledStmt); !isLabeledStmt {
resolver.go#L308: case *ast.LabeledStmt:
go/printer
nodes.go#L1211: lt, _ := t.(*ast.LabeledStmt)
nodes.go#L1360: case *ast.LabeledStmt:
printer.go#L1152: if _, ok := n.(*ast.LabeledStmt); ok {
printer.go#L1164: if _, ok := s.(*ast.LabeledStmt); ok {
go/types
labels.go#L52: lstmt *ast.LabeledStmt // labeled statement to which this block belongs, or nil
labels.go#L53: labels map[string]*ast.LabeledStmt // allocated lazily
labels.go#L58: func (b *block) insert(s *ast.LabeledStmt) {
labels.go#L65: labels = make(map[string]*ast.LabeledStmt)
labels.go#L73: func (b *block) gotoTarget(name string) *ast.LabeledStmt {
labels.go#L84: func (b *block) enclosingTarget(name string) *ast.LabeledStmt {
labels.go#L96: func (check *Checker) blockBranches(all *Scope, parent *block, lstmt *ast.LabeledStmt, list []ast.Stmt) []*ast.BranchStmt {
labels.go#L116: blockBranches := func(lstmt *ast.LabeledStmt, list []ast.Stmt) {
labels.go#L122: var stmtBranches func(*ast.LabeledStmt, ast.Stmt)
labels.go#L123: stmtBranches = func(lstmt *ast.LabeledStmt, s ast.Stmt) {
labels.go#L130: case *ast.LabeledStmt:
return.go#L27: case *ast.LabeledStmt:
return.go#L120: case *ast.LabeledStmt:
stmt.go#L436: case *ast.LabeledStmt:
golang.org/x/tools/go/ast/edge
edge.go#L259: LabeledStmt_Label: info[*ast.LabeledStmt]("Label"),
edge.go#L260: LabeledStmt_Stmt: info[*ast.LabeledStmt]("Stmt"),
golang.org/x/tools/go/ast/inspector
typeof.go#L178: case *ast.LabeledStmt:
walk.go#L168: case *ast.LabeledStmt: