Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for SelectStmt (0.22 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    	KindRangeBody       // body of RangeStmt
    	KindRangeDone       // block after RangeStmt
    	KindRangeLoop       // head of RangeStmt
    	KindSelectCaseBody  // body of SelectStmt
    	KindSelectDone      // block after SelectStmt
    	KindSelectAfterCase // block after a CommClause
    	KindSwitchCaseBody  // body of CaseClause
    	KindSwitchDone      // block after {Type.}SwitchStmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    	case *ast.Package:
    		return 1 << nPackage
    	case *ast.ParenExpr:
    		return 1 << nParenExpr
    	case *ast.RangeStmt:
    		return 1 << nRangeStmt
    	case *ast.ReturnStmt:
    		return 1 << nReturnStmt
    	case *ast.SelectStmt:
    		return 1 << nSelectStmt
    	case *ast.SelectorExpr:
    		return 1 << nSelectorExpr
    	case *ast.SendStmt:
    		return 1 << nSendStmt
    	case *ast.SliceExpr:
    		return 1 << nSliceExpr
    	case *ast.StarExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/go/ast/ast.go

    		Comm  Stmt      // send or receive statement; nil means default case
    		Colon token.Pos // position of ":"
    		Body  []Stmt    // statement list; or nil
    	}
    
    	// A SelectStmt node represents a select statement.
    	SelectStmt struct {
    		Select token.Pos  // position of "select" keyword
    		Body   *BlockStmt // CommClauses only
    	}
    
    	// A ForStmt represents a for statement.
    	ForStmt struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/stmt.go

    		if len(init) > 0 {
    			init.Append(n)
    			return ir.NewBlockStmt(n.Pos(), init)
    		}
    		return n
    
    	case ir.OINLMARK:
    		n := n.(*ir.InlineMarkStmt)
    		return n
    
    	case ir.OSELECT:
    		n := n.(*ir.SelectStmt)
    		walkSelect(n)
    		return n
    
    	case ir.OSWITCH:
    		n := n.(*ir.SwitchStmt)
    		walkSwitch(n)
    		return n
    
    	case ir.ORANGE:
    		n := n.(*ir.RangeStmt)
    		return walkRange(n)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    		children = append(children,
    			tok(n.For, len("for")),
    			tok(n.TokPos, len(n.Tok.String())))
    
    	case *ast.ReturnStmt:
    		children = append(children,
    			tok(n.Return, len("return")))
    
    	case *ast.SelectStmt:
    		children = append(children,
    			tok(n.Select, len("select")))
    
    	case *ast.SelectorExpr:
    		// nop
    
    	case *ast.SendStmt:
    		children = append(children,
    			tok(n.Arrow, len("<-")))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  6. src/cmd/cover/cover.go

    				Rbrace: stmt.End(),
    			}
    			n.Else = block
    		case *ast.BlockStmt:
    			stmt.Lbrace = pos
    		default:
    			panic("unexpected node type in if")
    		}
    		ast.Walk(f, n.Else)
    		return nil
    	case *ast.SelectStmt:
    		// Don't annotate an empty select - creates a syntax error.
    		if n.Body == nil || len(n.Body.List) == 0 {
    			return nil
    		}
    	case *ast.SwitchStmt:
    		// Don't annotate an empty switch - creates a syntax error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/walk.go

    		w.node(n.Body)
    
    	case *SwitchStmt:
    		if n.Init != nil {
    			w.node(n.Init)
    		}
    		if n.Tag != nil {
    			w.node(n.Tag)
    		}
    		for _, s := range n.Body {
    			w.node(s)
    		}
    
    	case *SelectStmt:
    		for _, s := range n.Body {
    			w.node(s)
    		}
    
    	// helper nodes
    	case *RangeClause:
    		if n.Lhs != nil {
    			w.node(n.Lhs)
    		}
    		w.node(n.X)
    
    	case *CaseClause:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. src/go/ast/walk.go

    		if n.Init != nil {
    			Walk(v, n.Init)
    		}
    		Walk(v, n.Assign)
    		Walk(v, n.Body)
    
    	case *CommClause:
    		if n.Comm != nil {
    			Walk(v, n.Comm)
    		}
    		walkList(v, n.Body)
    
    	case *SelectStmt:
    		Walk(v, n.Body)
    
    	case *ForStmt:
    		if n.Init != nil {
    			Walk(v, n.Init)
    		}
    		if n.Cond != nil {
    			Walk(v, n.Cond)
    		}
    		if n.Post != nil {
    			Walk(v, n.Post)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/select.go

    package walk
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    func walkSelect(sel *ir.SelectStmt) {
    	lno := ir.SetPos(sel)
    	if sel.Walked() {
    		base.Fatalf("double walkSelect")
    	}
    	sel.SetWalked(true)
    
    	init := ir.TakeInit(sel)
    
    	init = append(init, walkSelectCases(sel.Cases)...)
    	sel.Cases = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/parser.go

    		s.Body = append(s.Body, p.caseClause())
    	}
    	s.Rbrace = p.pos()
    	p.want(_Rbrace)
    
    	return s
    }
    
    func (p *parser) selectStmt() *SelectStmt {
    	if trace {
    		defer p.trace("selectStmt")()
    	}
    
    	s := new(SelectStmt)
    	s.pos = p.pos()
    
    	p.want(_Select)
    	if !p.got(_Lbrace) {
    		p.syntaxError("missing { after select clause")
    		p.advance(_Case, _Default, _Rbrace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top