- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 101 for ifaceeq (0.35 sec)
-
src/cmd/compile/internal/reflectdata/helpers.go
return n.TypeWord } if dst.IsEmptyInterface() { return concreteRType(pos, src) // direct eface construction } if !src.IsInterface() { return ITabAddrAt(pos, src, dst) // direct iface construction } return TypePtrAt(pos, dst) // convI2I } // ConvIfaceSrcRType asserts that n is a conversion from // non-interface type to interface type, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0) -
src/cmd/vet/testdata/print/print.go
var et5 errorTest5 et5.error() // ok, not an error method. // Interfaces can be used with any verb. var iface interface { ToTheMadness() bool // Method ToTheMadness usually returns false } fmt.Printf("%f", iface) // ok: fmt treats interfaces as transparent and iface may well have a float concrete type // Can't print a function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0) -
src/archive/tar/common.go
for k, v := range sys.PAXRecords { h.PAXRecords[k] = v } } } var doNameLookups = true if iface, ok := fi.(FileInfoNames); ok { doNameLookups = false var err error h.Gname, err = iface.Gname() if err != nil { return nil, err } h.Uname, err = iface.Uname() if err != nil { return nil, err } } if sysStat != nil { return h, sysStat(fi, h, doNameLookups)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 24.7K bytes - Viewed (0) -
src/cmd/link/internal/ld/deadcode.go
if d.ctxt.Debugvlog > 1 { d.ctxt.Logf("reached iface method: %v\n", m) } d.ifaceMethod[m] = true continue case objabi.R_USENAMEDMETHOD: name := d.decodeGenericIfaceMethod(d.ldr, r.Sym()) if d.ctxt.Debugvlog > 1 { d.ctxt.Logf("reached generic iface method: %s\n", name) } d.genericIfaceMethod[name] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 14:52:41 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
// (which will compare signatures exactly as we do below). // We leave it as is for now because missingMethod provides // a failure cause which allows for a better error message. // Eventually, unify should return an error with cause. var cause string constraint := tpar.iface()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
if !sig.Variadic() { return nil // not variadic } params := sig.Params() nparams := params.Len() // variadic => nonzero args := params.At(nparams - 1) iface, ok := args.Type().(*types.Slice).Elem().(*types.Interface) if !ok || !iface.Empty() { return nil // final (args) param is not ...interface{} } // Is second last param 'format string'? var format *types.Var if nparams >= 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/go/types/infer.go
// (which will compare signatures exactly as we do below). // We leave it as is for now because missingMethod provides // a failure cause which allows for a better error message. // Eventually, unify should return an error with cause. var cause string constraint := tpar.iface()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
s.startBlock(bOk) if tmp == nil { if direct { s.vars[valVar] = s.newValue1(ssa.OpIData, dst, iface) } else { p := s.newValue1(ssa.OpIData, types.NewPtr(dst), iface) s.vars[valVar] = s.load(dst, p) } } else { p := s.newValue1(ssa.OpIData, types.NewPtr(dst), iface) s.move(dst, addr, p) } s.vars[okVar] = s.constBool(true) s.endBlock() bOk.AddEdgeTo(bEnd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/encoding/xml/marshal.go
if dashLast { // "--->" is invalid grammar. Make it "- -->" p.WriteByte(' ') } p.WriteString("-->") continue case fInnerXML: vf = indirect(vf) iface := vf.Interface() switch raw := iface.(type) { case []byte: p.Write(raw) continue case string: p.WriteString(raw) continue } case fElement, fElement | fAny:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 18:46:41 UTC 2024 - 31.2K bytes - Viewed (0) -
src/internal/reflectlite/type.go
// methods along the way, or else V does not implement T. // This lets us run the scan in overall linear time instead of // the quadratic time a naive search would require. // See also ../runtime/iface.go. if V.Kind() == Interface { v := (*interfaceType)(unsafe.Pointer(V)) i := 0 for j := 0; j < len(v.Methods); j++ { tm := &t.Methods[i] tmName := rT.nameOff(tm.Name) vm := &v.Methods[j]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0)