Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for x2val (0.04 sec)

  1. src/go/types/expr.go

    func (check *Checker) shift(x, y *operand, e ast.Expr, op token.Token) {
    	// TODO(gri) This function seems overly complex. Revisit.
    
    	var xval constant.Value
    	if x.mode == constant_ {
    		xval = constant.ToInt(x.val)
    	}
    
    	if allInteger(x.typ) || isUntyped(x.typ) && xval != nil && xval.Kind() == constant.Int {
    		// The lhs is of integer type or an untyped constant representable
    		// as an integer. Nothing to do.
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) shift(x, y *operand, e syntax.Expr, op syntax.Operator) {
    	// TODO(gri) This function seems overly complex. Revisit.
    
    	var xval constant.Value
    	if x.mode == constant_ {
    		xval = constant.ToInt(x.val)
    	}
    
    	if allInteger(x.typ) || isUntyped(x.typ) && xval != nil && xval.Kind() == constant.Int {
    		// The lhs is of integer type or an untyped constant representable
    		// as an integer. Nothing to do.
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top