Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for recordTypeAndValue (0.2 sec)

  1. src/go/types/expr.go

    		c := operand{old.mode, x, old.typ, old.val, 0}
    		check.convertUntyped(&c, typ)
    		if c.mode == invalid {
    			return
    		}
    	}
    
    	// Everything's fine, record final type and value for x.
    	check.recordTypeAndValue(x, old.mode, typ, old.val)
    }
    
    // updateExprVal updates the value of x to val.
    func (check *Checker) updateExprVal(x ast.Expr, val constant.Value) {
    	if info, ok := check.untyped[x]; ok {
    		info.val = val
    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

    		c := operand{old.mode, x, old.typ, old.val, 0}
    		check.convertUntyped(&c, typ)
    		if c.mode == invalid {
    			return
    		}
    	}
    
    	// Everything's fine, record final type and value for x.
    	check.recordTypeAndValue(x, old.mode, typ, old.val)
    }
    
    // updateExprVal updates the value of x to val.
    func (check *Checker) updateExprVal(x syntax.Expr, val constant.Value) {
    	if info, ok := check.untyped[x]; ok {
    		info.val = val
    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