Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for SendStmt (0.18 sec)

  1. 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)
  2. src/go/ast/walk.go

    	case *DeclStmt:
    		Walk(v, n.Decl)
    
    	case *EmptyStmt:
    		// nothing to do
    
    	case *LabeledStmt:
    		Walk(v, n.Label)
    		Walk(v, n.Stmt)
    
    	case *ExprStmt:
    		Walk(v, n.X)
    
    	case *SendStmt:
    		Walk(v, n.Chan)
    		Walk(v, n.Value)
    
    	case *IncDecStmt:
    		Walk(v, n.X)
    
    	case *AssignStmt:
    		walkList(v, n.Lhs)
    		walkList(v, n.Rhs)
    
    	case *GoStmt:
    		Walk(v, n.Call)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stmt.go

    		for i, clause := range s.Body {
    			if clause == nil {
    				continue // error reported before
    			}
    
    			// clause.Comm must be a SendStmt, RecvStmt, or default case
    			valid := false
    			var rhs syntax.Expr // rhs of RecvStmt, or nil
    			switch s := clause.Comm.(type) {
    			case nil, *syntax.SendStmt:
    				valid = true
    			case *syntax.AssignStmt:
    				if _, ok := s.Rhs.(*syntax.ListExpr); !ok {
    					rhs = s.Rhs
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    			clause, _ := s.(*ast.CommClause)
    			if clause == nil {
    				continue // error reported before
    			}
    
    			// clause.Comm must be a SendStmt, RecvStmt, or default case
    			valid := false
    			var rhs ast.Expr // rhs of RecvStmt, or nil
    			switch s := clause.Comm.(type) {
    			case nil, *ast.SendStmt:
    				valid = true
    			case *ast.AssignStmt:
    				if len(s.Rhs) == 1 {
    					rhs = s.Rhs[0]
    				}
    			case *ast.ExprStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    	b := new(BadExpr)
    	b.pos = p.pos()
    	return b
    }
    
    // ----------------------------------------------------------------------------
    // Statements
    
    // SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    func (p *parser) simpleStmt(lhs Expr, keyword token) SimpleStmt {
    	if trace {
    		defer p.trace("simpleStmt")()
    	}
    
    	if keyword == _For && p.tok == _Range {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    	GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
    	FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
    	DeferStmt .
    
    SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    </pre>
    
    <h3 id="Terminating_statements">Terminating statements</h3>
    
    <p>
    A <i>terminating statement</i> interrupts the regular flow of control in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  7. doc/go_spec.html

    	GoStmt | ReturnStmt | BreakStmt | ContinueStmt | GotoStmt |
    	FallthroughStmt | Block | IfStmt | SwitchStmt | SelectStmt | ForStmt |
    	DeferStmt .
    
    SimpleStmt = EmptyStmt | ExpressionStmt | SendStmt | IncDecStmt | Assignment | ShortVarDecl .
    </pre>
    
    <h3 id="Terminating_statements">Terminating statements</h3>
    
    <p>
    A <i>terminating statement</i> interrupts the regular flow of control in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top