Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CallStmt (0.1 sec)

  1. src/cmd/compile/internal/types2/return.go

    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:
    		// calling the predeclared (possibly parenthesized) panic() function is terminating
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/positions.go

    		// 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:
    		// case *SelectStmt:
    
    		// helper nodes
    		case *RangeClause:
    			if n.Lhs != nil {
    				m = n.Lhs
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser.go

    	// and reject that more efficiently though.
    	return p.pexpr(nil, true)
    }
    
    // callStmt parses call-like statements that can be preceded by 'defer' and 'go'.
    func (p *parser) callStmt() *CallStmt {
    	if trace {
    		defer p.trace("callStmt")()
    	}
    
    	s := new(CallStmt)
    	s.pos = p.pos()
    	s.Tok = p.tok // _Defer or _Go
    	p.next()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/rangefunc/rewrite.go

    	f(func() {
    		runtime.deferprocat(func() { print("A") }, #defers)
    	})
    
    For this rewriting phase, we insert the explicit initialization of
    #defers and then attach the #defers variable to the CallStmt
    representing the defer. That variable will be propagated to the
    backend and will cause the backend to compile the defer using
    deferprocat instead of an ordinary deferproc.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    			return
    		}
    
    		var x operand
    		check.binary(&x, nil, lhs[0], rhs[0], s.Op)
    		check.assignVar(lhs[0], nil, &x, "assignment")
    
    	case *syntax.CallStmt:
    		kind := "go"
    		if s.Tok == syntax.Defer {
    			kind = "defer"
    		}
    		check.suspendedCall(kind, s.Call)
    
    	case *syntax.ReturnStmt:
    		res := check.sig.results
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top