Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for SendStmt (0.18 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/go/ast/ast.go

    		Stmt  Stmt
    	}
    
    	// An ExprStmt node represents a (stand-alone) expression
    	// in a statement list.
    	//
    	ExprStmt struct {
    		X Expr // expression
    	}
    
    	// A SendStmt node represents a send statement.
    	SendStmt struct {
    		Chan  Expr
    		Arrow token.Pos // position of "<-"
    		Value Expr
    	}
    
    	// An IncDecStmt node represents an increment or decrement statement.
    	IncDecStmt 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/enclosing.go

    			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("<-")))
    
    	case *ast.SliceExpr:
    		children = append(children,
    			tok(n.Lbrack, len("[")),
    			tok(n.Rbrack, len("]")))
    
    	case *ast.StarExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top