Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for multiExpr (0.13 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/go/types/expr.go

    	check.singleValue(x)
    }
    
    // multiExpr typechecks e and returns its value (or values) in list.
    // If allowCommaOk is set and e is a map index, comma-ok, or comma-err
    // expression, the result is a two-element list containing the value
    // of e, and an untyped bool value or an error value, respectively.
    // If an error occurred, list[0] is not valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    	check.singleValue(x)
    }
    
    // multiExpr typechecks e and returns its value (or values) in list.
    // If allowCommaOk is set and e is a map index, comma-ok, or comma-err
    // expression, the result is a two-element list containing the value
    // of e, and an untyped bool value or an error value, respectively.
    // If an error occurred, list[0] is not valid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. 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)
  6. 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