type go/ast.Stmt
55 uses
go/ast (current package)
ast.go#L44: type Stmt interface {
ast.go#L639: Stmt Stmt
ast.go#L703: List []Stmt
ast.go#L710: Init Stmt // initialization statement; or nil
ast.go#L713: Else Stmt // else branch; or nil
ast.go#L721: Body []Stmt // statement list; or nil
ast.go#L727: Init Stmt // initialization statement; or nil
ast.go#L735: Init Stmt // initialization statement; or nil
ast.go#L736: Assign Stmt // x := y.(type) or y.(type)
ast.go#L743: Comm Stmt // send or receive statement; nil means default case
ast.go#L745: Body []Stmt // statement list; or nil
ast.go#L757: Init Stmt // initialization statement; or nil
ast.go#L759: Post Stmt // post iteration statement; or nil
commentmap.go#L218: case *File, *Field, Decl, Spec, Stmt:
go/parser
parser.go#L1397: func (p *parser) parseStmtList() (list []ast.Stmt) {
parser.go#L1911: func (p *parser) parseSimpleStmt(mode int) (ast.Stmt, bool) {
parser.go#L2000: func (p *parser) parseGoStmt() ast.Stmt {
parser.go#L2015: func (p *parser) parseDeferStmt() ast.Stmt {
parser.go#L2061: func (p *parser) makeExpr(s ast.Stmt, want string) ast.Expr {
parser.go#L2079: func (p *parser) parseIfHeader() (init ast.Stmt, cond ast.Expr) {
parser.go#L2099: var condStmt ast.Stmt
parser.go#L2151: var else_ ast.Stmt
parser.go#L2196: func (p *parser) isTypeSwitchGuard(s ast.Stmt) bool {
parser.go#L2217: func (p *parser) parseSwitchStmt() ast.Stmt {
parser.go#L2224: var s1, s2 ast.Stmt
parser.go#L2256: var list []ast.Stmt
parser.go#L2277: var comm ast.Stmt
parser.go#L2330: var list []ast.Stmt
parser.go#L2341: func (p *parser) parseForStmt() ast.Stmt {
parser.go#L2348: var s1, s2, s3 ast.Stmt
parser.go#L2423: func (p *parser) parseStmt() (s ast.Stmt) {
resolver.go#L244: func (r *resolver) walkStmts(list []ast.Stmt) {
go/printer
nodes.go#L1189: func (p *printer) stmtList(list []ast.Stmt, nindent int, nextIsRBrace bool) {
nodes.go#L1279: func (p *printer) controlClause(isForStmt bool, init ast.Stmt, expr ast.Expr, post ast.Stmt) {
nodes.go#L1347: func (p *printer) stmt(stmt ast.Stmt, nextIsRBrace bool) {
printer.go#L1149: case ast.Stmt:
printer.go#L1160: case []ast.Stmt:
go/types
assignments.go#L388: func (check *Checker) initVars(lhs []*Var, orig_rhs []ast.Expr, returnStmt ast.Stmt) {
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.Stmt)
labels.go#L123: stmtBranches = func(s ast.Stmt) {
return.go#L17: func (check *Checker) isTerminating(s ast.Stmt, label string) bool {
return.go#L79: func (check *Checker) isTerminatingList(list []ast.Stmt, label string) bool {
return.go#L110: func hasBreak(s ast.Stmt, label string, implicit bool) bool {
return.go#L177: func hasBreakList(list []ast.Stmt, label string, implicit bool) bool {
stmt.go#L99: func (check *Checker) simpleStmt(s ast.Stmt) {
stmt.go#L105: func trimTrailingEmptyStmts(list []ast.Stmt) []ast.Stmt {
stmt.go#L114: func (check *Checker) stmtList(ctxt stmtContext, list []ast.Stmt) {
stmt.go#L127: func (check *Checker) multipleDefaults(list []ast.Stmt) {
stmt.go#L128: var first ast.Stmt
stmt.go#L130: var d ast.Stmt
stmt.go#L409: func (check *Checker) stmt(ctxt stmtContext, s ast.Stmt) {