Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,015 for typeSet (0.17 sec)

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

    		}
    		T, ok := under(obj.Type()).(*Interface)
    		if !ok {
    			t.Fatalf("%s: %v is not an interface (invalid test case)", body, obj)
    		}
    
    		// verify test case
    		got := T.typeSet().String()
    		if got != want {
    			t.Errorf("%s: got %s; want %s", body, got, want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 07 21:37:14 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/go/types/unify.go

    					// type, it's not clear how to choose and whether we introduce
    					// an order dependency or not. Requiring the same method set
    					// is conservative.
    					if len(xi.typeSet().methods) != len(yi.typeSet().methods) {
    						return false
    					}
    				} else if xi != nil || yi != nil {
    					// One but not both of them are interfaces.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/unify.go

    					// type, it's not clear how to choose and whether we introduce
    					// an order dependency or not. Requiring the same method set
    					// is conservative.
    					if len(xi.typeSet().methods) != len(yi.typeSet().methods) {
    						return false
    					}
    				} else if xi != nil || yi != nil {
    					// One but not both of them are interfaces.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. common/scripts/tracing.sh

        { set -x; } 2>/dev/null
      fi
      return "$result"
    }
    
    # Usage: tracing::decorate <function>
    # Automatically makes a function traced.
    function tracing::decorate() {
    eval "\
    function $1() {
    _$(typeset -f "$1")
    tracing::run '$1' _$1
    }
    "
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 28 15:25:47 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<?>.TypeSet types = TypeToken.of(new TypeCapture<A>() {}.capture()).getTypes();
        makeUnmodifiable(types.rawTypes())
            .containsExactly(Interface1.class, Interface2.class, Interface3.class, Iterable.class);
      }
    
      private static void assertSubtypeFirst(TypeToken<?>.TypeSet types) {
        assertSubtypeTokenBeforeSupertypeToken(types);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        TypeToken<?>.TypeSet types = TypeToken.of(new TypeCapture<A>() {}.capture()).getTypes();
        makeUnmodifiable(types.rawTypes())
            .containsExactly(Interface1.class, Interface2.class, Interface3.class, Iterable.class);
      }
    
      private static void assertSubtypeFirst(TypeToken<?>.TypeSet types) {
        assertSubtypeTokenBeforeSupertypeToken(types);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  7. src/go/types/union.go

    			// here, we must have at least two terms in the syntactic term list (but not necessarily
    			// in the term list of the union's type set).
    			if f != nil {
    				tset := f.typeSet()
    				switch {
    				case tset.NumMethods() != 0:
    					check.errorf(tlist[i], InvalidUnion, "cannot use %s in union (%s contains methods)", t, t)
    				case t.typ == universeComparable.Type():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/stmt.go

    			} else {
    				// Clause variable is broken; prevent typechecking.
    				nvar.SetTypecheck(1)
    			}
    			ncase.Var = nvar
    		}
    
    		Stmts(ncase.Body)
    	}
    }
    
    type typeSet struct {
    	m map[string]src.XPos
    }
    
    func (s *typeSet) add(pos src.XPos, typ *types.Type) {
    	if s.m == nil {
    		s.m = make(map[string]src.XPos)
    	}
    
    	ls := typ.LinkString()
    	if prev, ok := s.m[ls]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/lookup.go

    					}
    				}
    
    			case *Interface:
    				// look for a matching method (interface may be a type parameter)
    				if i, m := t.typeSet().LookupMethod(pkg, name, foldCase); m != nil {
    					assert(m.typ != nil)
    					index = concat(e.index, i)
    					if obj != nil || e.multiples {
    						return nil, index, false // collision
    					}
    					obj = m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. src/go/types/lookup.go

    					}
    				}
    
    			case *Interface:
    				// look for a matching method (interface may be a type parameter)
    				if i, m := t.typeSet().LookupMethod(pkg, name, foldCase); m != nil {
    					assert(m.typ != nil)
    					index = concat(e.index, i)
    					if obj != nil || e.multiples {
    						return nil, index, false // collision
    					}
    					obj = m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top