Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for iface (0.12 sec)

  1. src/go/types/object_test.go

    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    	embed, _, _ := LookupFieldOrMethod(iface.Type(), false, nil, "Error")
    	if embed == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. test/fixedbugs/bug517.go

    // The gofrontend used to mishandle this code due to a pass ordering issue.
    // It was inconsistent as to whether unsafe.Sizeof(byte(0)) was a constant,
    // and therefore as to whether it was a direct-iface type.
    
    package main
    
    import "unsafe"
    
    type A [unsafe.Sizeof(byte(0))]*byte
    
    func (r A) V() byte {
    	return *r[0]
    }
    
    func F() byte {
    	panic("F") // should never be called
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 20 03:00:06 UTC 2023
    - 703 bytes
    - Viewed (0)
  3. test/escape_iface.go

    type M interface {
    	M()
    }
    
    func mescapes(m M) { // ERROR "leaking param: m"
    	sink = m
    }
    
    func mdoesnotescape(m M) { // ERROR "m does not escape"
    }
    
    // Tests for type stored directly in iface and with value receiver method.
    type M0 struct {
    	p *int
    }
    
    func (M0) M() {
    }
    
    func efaceEscape0() {
    	{
    		i := 0
    		v := M0{&i}
    		var x M = v
    		_ = x
    	}
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 17:16:35 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. pkg/kubelet/network/dns/dns_windows.go

    	if err != nil {
    		return nil, err
    	}
    	defer regKey.Close()
    
    	ifaces, err := regKey.ReadSubKeyNames(0)
    	if err != nil {
    		return nil, err
    	}
    	for _, iface := range ifaces {
    		suffixes, err := getRegistryStringValue(fmt.Sprintf("%s\\%s", netIfacesRegistry, iface), "SearchList")
    		if err != nil {
    			return nil, err
    		}
    		if suffixes == "" {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/type/ModelTypes.java

                    if (!seenTypes.contains(superType)) {
                        queue.add(superType);
                    }
                }
                for (Class<?> iface : rawClass.getInterfaces()) {
                    ModelType<?> ifaceType = ModelType.of(iface);
                    if (!seenTypes.contains(ifaceType)) {
                        queue.add(ifaceType);
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/disk_manager.go

    	options := []string{"bind"}
    	if b.readOnly {
    		options = append(options, "ro")
    	}
    	if b.iscsiDisk.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    		b.iscsiDisk.Iface = b.iscsiDisk.Portals[0] + ":" + b.iscsiDisk.VolName
    	}
    	globalPDPath := manager.MakeGlobalPDName(*b.iscsiDisk)
    	mountOptions := util.JoinMountOptions(b.mountOptions, options)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go

    	return nil
    }
    
    func (obj *fakeDBusObject) AddMatchSignal(iface, member string, options ...dbus.MatchOption) *dbus.Call {
    	return nil
    }
    
    func (obj *fakeDBusObject) RemoveMatchSignal(iface, member string, options ...dbus.MatchOption) *dbus.Call {
    	return nil
    }
    
    func (obj *fakeDBusObject) GetProperty(p string) (dbus.Variant, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 19:50:06 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/object_test.go

    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    	embed, _, _ := LookupFieldOrMethod(iface.Type(), false, nil, "Error")
    	if embed == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/go/types/exprstring.go

    }
    
    func writeFieldList(buf *bytes.Buffer, list []*ast.Field, sep string, iface bool) {
    	for i, f := range list {
    		if i > 0 {
    			buf.WriteString(sep)
    		}
    
    		// field list names
    		writeIdentList(buf, f.Names)
    
    		// types of interface methods consist of signatures only
    		if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
    			writeSigExpr(buf, sig)
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. test/live.go

    var m map[string]int
    var mi map[interface{}]int
    
    // str and iface are used to ensure that a temp is required for runtime calls below.
    func str() string
    func iface() interface{}
    
    func f16() {
    	if b {
    		delete(mi, iface()) // ERROR "stack object .autotmp_[0-9]+ interface \{\}$"
    	}
    	delete(mi, iface())
    	delete(mi, iface())
    }
    
    var m2s map[string]*byte
    var m2 map[[2]string]*byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
Back to top