Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 135 for iface (0.05 sec)

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

    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    				underlying = iface
    			}
    			iface.methods = methods
    			iface.tset = nil // recompute type set with new methods
    
    			// If check != nil, check.newInterface will have saved the interface for later completion.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    	constraint := tparam.Constraint()
    	if constraint == nil {
    		return nil, fmt.Errorf("%s has nil constraint", tparam)
    	}
    	iface, _ := constraint.Underlying().(*types.Interface)
    	if iface == nil {
    		return nil, fmt.Errorf("constraint is %T, not *types.Interface", constraint.Underlying())
    	}
    	return InterfaceTermSet(iface)
    }
    
    // InterfaceTermSet computes the normalized terms for a constraint interface,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginClasspathIntegrationTest.groovy

            file("api/src/main/java/org/gradle/FooException.java") << """
    package org.gradle;
    
    class FooException extends Exception { }
            """
    
            file("client/src/main/java/org/gradle/Iface.java") << """
    package org.gradle;
    
    interface Iface {
        /**
         * Method Description.
         *
         * @throws FooException whenever
         * @throws IllegalArgumentException otherwise
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. src/go/types/named.go

    				iface.embeddeds = old.embeddeds
    				assert(old.complete) // otherwise we are copying incomplete data
    				iface.complete = old.complete
    				iface.implicit = old.implicit // should be false but be conservative
    				underlying = iface
    			}
    			iface.methods = methods
    			iface.tset = nil // recompute type set with new methods
    
    			// If check != nil, check.newInterface will have saved the interface for later completion.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/iimport.go

    // for interface methods to def.
    func canReuse(def *types.Named, rhs types.Type) bool {
    	if def == nil {
    		return true
    	}
    	iface, _ := rhs.(*types.Interface)
    	if iface == nil {
    		return true
    	}
    	// Don't use iface.Empty() here as iface may not be complete.
    	return iface.NumEmbeddeds() == 0 && iface.NumExplicitMethods() == 0
    }
    
    type importReader struct {
    	p          *iimporter
    	declReader bytes.Reader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/interface.go

    }
    
    func (check *Checker) interfaceType(ityp *Interface, iface *syntax.InterfaceType, def *TypeName) {
    	addEmbedded := func(pos syntax.Pos, typ Type) {
    		ityp.embeddeds = append(ityp.embeddeds, typ)
    		if ityp.embedPos == nil {
    			ityp.embedPos = new([]syntax.Pos)
    		}
    		*ityp.embedPos = append(*ityp.embedPos, pos)
    	}
    
    	for _, f := range iface.MethodList {
    		if f.Name == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. src/go/types/interface.go

    }
    
    func (check *Checker) interfaceType(ityp *Interface, iface *ast.InterfaceType, def *TypeName) {
    	addEmbedded := func(pos token.Pos, typ Type) {
    		ityp.embeddeds = append(ityp.embeddeds, typ)
    		if ityp.embedPos == nil {
    			ityp.embedPos = new([]token.Pos)
    		}
    		*ityp.embedPos = append(*ityp.embedPos, pos)
    	}
    
    	for _, f := range iface.Methods.List {
    		if len(f.Names) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/cri_stats_provider_linux.go

    		InterfaceStats: criInterfaceToSummary(criNetwork.DefaultInterface),
    		Interfaces:     make([]statsapi.InterfaceStats, 0, len(criNetwork.Interfaces)),
    	}
    	for _, iface := range criNetwork.Interfaces {
    		iStats.Interfaces = append(iStats.Interfaces, criInterfaceToSummary(iface))
    	}
    	ps.Network = &iStats
    }
    
    func addCRIPodMemoryStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 11:09:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top