type go/ast.EmptyStmt
15 uses
go/ast (current package)
ast.go#L625: EmptyStmt struct {
ast.go#L773: func (s *EmptyStmt) Pos() token.Pos { return s.Semicolon }
ast.go#L795: func (s *EmptyStmt) End() token.Pos {
ast.go#L860: func (*EmptyStmt) stmtNode() {}
walk.go#L199: case *EmptyStmt:
go/parser
parser.go#L2471: s = &ast.EmptyStmt{Semicolon: p.pos, Implicit: p.lit == "\n"}
parser.go#L2475: s = &ast.EmptyStmt{Semicolon: p.pos, Implicit: true}
go/printer
nodes.go#L1145: if _, isEmpty := s.(*ast.EmptyStmt); !isEmpty {
nodes.go#L1304: case *ast.EmptyStmt:
nodes.go#L1314: if e, isEmpty := s.Stmt.(*ast.EmptyStmt); isEmpty {
go/types
return.go#L22: case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt,
return.go#L82: if _, ok := list[i].(*ast.EmptyStmt); !ok {
return.go#L115: case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.ExprStmt,
stmt.go#L109: if _, ok := list[i-1].(*ast.EmptyStmt); !ok {
stmt.go#L380: case *ast.BadStmt, *ast.EmptyStmt: