Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 115 for eface (0.03 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    				}
    
    				var iface interface{}
    				if err := modePair.dec.Unmarshal(cborFromOriginal, &iface); err != nil {
    					t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface, err)
    				}
    
    				cborFromIface, err := modePair.enc.Marshal(iface)
    				if err != nil {
    					t.Fatalf("unexpected error from Marshal of iface: %v", err)
    				}
    
    				{
    					// interface{} to interface{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy

            then: 0 * _
        }
    
        class Base {
            @Incubating
            Object doSomething() { null }
        }
    
        interface Iface {}
    
        class Child extends Base implements Serializable, Iface {
            @Nullable
            Object doSomething() { null }
        }
    
        def "walking type hierarchy happens breadth-first"() {
            def visitor = Mock(Types.TypeVisitor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Types.java

                if (superclass != null) {
                    queue.add(superclass);
                }
                for (Class<?> iface : type.getInterfaces()) {
                    if (seenInterfaces.add(iface)) {
                        queue.add(Cast.<Class<? super T>>uncheckedCast(iface));
                    }
                }
            }
        }
    
        @FunctionalInterface
        public interface TypeVisitor<T> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/subr.go

    	return m
    }
    
    // Implements reports whether t implements the interface iface. t can be
    // an interface, a type parameter, or a concrete type.
    func Implements(t, iface *types.Type) bool {
    	var missing, have *types.Field
    	var ptr int
    	return implements(t, iface, &missing, &have, &ptr)
    }
    
    // ImplementsExplain reports whether t implements the interface iface. t can be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  5. pilot/pkg/util/network/ip.go

    	ok := true
    	ipAddresses := make([]string, 0)
    
    	ifaces, _ := net.Interfaces()
    
    	for _, iface := range ifaces {
    		if iface.Flags&net.FlagUp == 0 {
    			continue // interface down
    		}
    		if iface.Flags&net.FlagLoopback != 0 {
    			continue // loopback interface
    		}
    		addrs, _ := iface.Addrs()
    
    		for _, addr := range addrs {
    			var ip net.IP
    			switch v := addr.(type) {
    			case *net.IPNet:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top