Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for SendStmt (0.2 sec)

  1. test/chan/sendstmt.go

    Kunpei Sakai <******@****.***> 1505438687 +0900
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 02:39:16 UTC 2017
    - 672 bytes
    - Viewed (0)
  2. test/fixedbugs/gcc61273.go

    // compile
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // PR61273: gccgo failed to compile a SendStmt in the PostStmt of a ForClause
    // that involved predefined constants.
    
    package main
    
    func main() {
    	c := make(chan bool, 1)
    	for ; false; c <- false {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 375 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/return.go

    // is "".
    func (check *Checker) isTerminating(s syntax.Stmt, label string) bool {
    	switch s := s.(type) {
    	default:
    		panic("unreachable")
    
    	case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.SendStmt,
    		*syntax.AssignStmt, *syntax.CallStmt:
    		// no chance
    
    	case *syntax.LabeledStmt:
    		return check.isTerminating(s.Stmt, s.Label.Value)
    
    	case *syntax.ExprStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/select.go

    	var dflt *ir.CommClause
    	for _, cas := range cases {
    		ir.SetPos(cas)
    		n := cas.Comm
    		if n == nil {
    			dflt = cas
    			continue
    		}
    		switch n.Op() {
    		case ir.OSEND:
    			n := n.(*ir.SendStmt)
    			n.Value = typecheck.NodAddr(n.Value)
    			n.Value = typecheck.Expr(n.Value)
    
    		case ir.OSELRECV2:
    			n := n.(*ir.AssignListStmt)
    			if !ir.IsBlank(n.Lhs[0]) {
    				n.Lhs[0] = typecheck.NodAddr(n.Lhs[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/go/types/return.go

    // is "".
    func (check *Checker) isTerminating(s ast.Stmt, label string) bool {
    	switch s := s.(type) {
    	default:
    		panic("unreachable")
    
    	case *ast.BadStmt, *ast.DeclStmt, *ast.EmptyStmt, *ast.SendStmt,
    		*ast.IncDecStmt, *ast.AssignStmt, *ast.GoStmt, *ast.DeferStmt,
    		*ast.RangeStmt:
    		// no chance
    
    	case *ast.LabeledStmt:
    		return check.isTerminating(s.Stmt, s.Label.Name)
    
    	case *ast.ExprStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/positions.go

    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    			m = n.Chan
    		// case *DeclStmt:
    		case *AssignStmt:
    			m = n.Lhs
    		// case *BranchStmt:
    		// case *CallStmt:
    		// case *ReturnStmt:
    		// case *IfStmt:
    		// case *ForStmt:
    		// case *SwitchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    	case *ast.AssignStmt,
    		*ast.BadStmt,
    		*ast.DeclStmt,
    		*ast.DeferStmt,
    		*ast.EmptyStmt,
    		*ast.ExprStmt,
    		*ast.GoStmt,
    		*ast.IncDecStmt,
    		*ast.ReturnStmt,
    		*ast.SendStmt:
    		// no statements inside
    
    	case *ast.BlockStmt:
    		for _, stmt := range x.List {
    			d.findLabels(stmt)
    		}
    
    	case *ast.BranchStmt:
    		switch x.Tok {
    		case token.GOTO:
    			if x.Label != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    		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:
    		return 1 << nStarExpr
    	case *ast.StructType:
    		return 1 << nStructType
    	case *ast.SwitchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/walk.go

    	case *EmptyStmt: // nothing to do
    
    	case *LabeledStmt:
    		w.node(n.Label)
    		w.node(n.Stmt)
    
    	case *BlockStmt:
    		w.stmtList(n.List)
    
    	case *ExprStmt:
    		w.node(n.X)
    
    	case *SendStmt:
    		w.node(n.Chan)
    		w.node(n.Value)
    
    	case *DeclStmt:
    		w.declList(n.DeclList)
    
    	case *AssignStmt:
    		w.node(n.Lhs)
    		if n.Rhs != nil {
    			w.node(n.Rhs)
    		}
    
    	case *BranchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/nodes.go

    		Label *Name
    		Stmt  Stmt
    		stmt
    	}
    
    	BlockStmt struct {
    		List   []Stmt
    		Rbrace Pos
    		stmt
    	}
    
    	ExprStmt struct {
    		X Expr
    		simpleStmt
    	}
    
    	SendStmt struct {
    		Chan, Value Expr // Chan <- Value
    		simpleStmt
    	}
    
    	DeclStmt struct {
    		DeclList []Decl
    		stmt
    	}
    
    	AssignStmt struct {
    		Op       Operator // 0 means no operation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top