Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OpPos (0.02 sec)

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

    // arbitrarily large.
    func (check *Checker) overflow(x *operand, opPos syntax.Pos) {
    	assert(x.mode == constant_)
    
    	if x.val.Kind() == constant.Unknown {
    		// TODO(gri) We should report exactly what went wrong. At the
    		//           moment we don't have the (go/constant) API for that.
    		//           See also TODO in go/constant/value.go.
    		check.error(atPos(opPos), InvalidConstVal, "constant result is not representable")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/go/types/const.go

    // arbitrarily large.
    func (check *Checker) overflow(x *operand, opPos token.Pos) {
    	assert(x.mode == constant_)
    
    	if x.val.Kind() == constant.Unknown {
    		// TODO(gri) We should report exactly what went wrong. At the
    		//           moment we don't have the (go/constant) API for that.
    		//           See also TODO in go/constant/value.go.
    		check.error(atPos(opPos), InvalidConstVal, "constant result is not representable")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top