- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 135 for iface (0.05 sec)
-
src/cmd/compile/internal/reflectdata/helpers.go
if hasRType(n, n.TypeWord, "TypeWord") { 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) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java
if (superclass != null) { queue.add(superclass); } for (Class<?> iface : type.getInterfaces()) { if (seenInterfaces.add(iface)) { queue.add(Cast.<Class<? super T>>uncheckedCast(iface)); } } } return seenInterfaces; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 04:42:54 UTC 2024 - 45.4K 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/runtime/runtime-gdb_test.go
} } } const autotmpTypeSource = ` package main type astruct struct { a, b int } func main() { var iface interface{} = map[string]astruct{} var iface2 interface{} = []astruct{} println(iface, iface2) } ` // TestGdbAutotmpTypes ensures that types of autotmp variables appear in .debug_info // See bug #17830. func TestGdbAutotmpTypes(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 23.2K 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)