Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for multiExpr (0.16 sec)

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

    			}
    		}
    		// ensure that LHS variables have a type
    		for _, v := range lhs {
    			if v.typ == nil {
    				v.typ = Typ[Invalid]
    			}
    		}
    		return
    	}
    
    	rhs, commaOk := check.multiExpr(orig_rhs[0], l == 2 && returnStmt == nil)
    	r = len(rhs)
    	if l == r {
    		for i, lhs := range lhs {
    			check.initVar(lhs, rhs[i], context)
    		}
    		// Only record comma-ok expression if both initializations succeeded
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/go/types/assignments.go

    			}
    		}
    		// ensure that LHS variables have a type
    		for _, v := range lhs {
    			if v.typ == nil {
    				v.typ = Typ[Invalid]
    			}
    		}
    		return
    	}
    
    	rhs, commaOk := check.multiExpr(orig_rhs[0], l == 2 && returnStmt == nil)
    	r = len(rhs)
    	if l == r {
    		for i, lhs := range lhs {
    			check.initVar(lhs, rhs[i], context)
    		}
    		// Only record comma-ok expression if both initializations succeeded
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/call.go

    // A single-element expression list may evaluate to multiple operands.
    func (check *Checker) exprList(elist []syntax.Expr) (xlist []*operand) {
    	if n := len(elist); n == 1 {
    		xlist, _ = check.multiExpr(elist[0], false)
    	} else if n > 1 {
    		// multiple (possibly invalid) values
    		xlist = make([]*operand, n)
    		for i, e := range elist {
    			var x operand
    			check.expr(nil, &x, e)
    			xlist[i] = &x
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  4. src/go/types/call.go

    // A single-element expression list may evaluate to multiple operands.
    func (check *Checker) exprList(elist []ast.Expr) (xlist []*operand) {
    	if n := len(elist); n == 1 {
    		xlist, _ = check.multiExpr(elist[0], false)
    	} else if n > 1 {
    		// multiple (possibly invalid) values
    		xlist = make([]*operand, n)
    		for i, e := range elist {
    			var x operand
    			check.expr(nil, &x, e)
    			xlist[i] = &x
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top