- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for okforeq (0.21 sec)
-
src/cmd/compile/internal/typecheck/universe.go
okfor[ir.OADD] = okforadd[:] okfor[ir.OAND] = okforand[:] okfor[ir.OANDAND] = okforbool[:] okfor[ir.OANDNOT] = okforand[:] okfor[ir.ODIV] = okforarith[:] okfor[ir.OEQ] = okforeq[:] okfor[ir.OGE] = types.IsOrdered[:] okfor[ir.OGT] = types.IsOrdered[:] okfor[ir.OLE] = types.IsOrdered[:] okfor[ir.OLT] = types.IsOrdered[:] okfor[ir.OMOD] = okforand[:] okfor[ir.OMUL] = okforarith[:] okfor[ir.ONE] = okforeq[:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
return l, r, nil } } if t.Kind() == types.TIDEAL { t = mixUntyped(l.Type(), r.Type()) } if dt := defaultType(t); !okfor[op][dt.Kind()] { base.Errorf("invalid operation: %v (operator %v not defined on %s)", n, op, typekind(t)) return l, r, nil } // okfor allows any array == array, map == map, func == func. // restrict to slice/map/func == nil and nil == slice/map/func.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/const.go
switch op { case ir.OCOMPLEX: if t.IsComplex() { return types.FloatForComplex(t) } case ir.OREAL, ir.OIMAG: if t.IsFloat() { return types.ComplexForFloat(t) } default: if okfor[op][t.Kind()] { return t } } return nil } // ConvertVal converts v into a representation appropriate for t. If // no such representation exists, it returns constant.MakeUnknown() // instead.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 10.5K bytes - Viewed (0)