Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for TypeParam (0.2 sec)

  1. src/go/types/named.go

    	// accessed.
    	methods []*Func
    
    	// loader may be provided to lazily load type parameters, underlying type, and methods.
    	loader func(*Named) (tparams []*TypeParam, underlying Type, methods []*Func)
    }
    
    // instance holds information that is only necessary for instantiated named
    // types.
    type instance struct {
    	orig            *Named    // original, uninstantiated type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

          return Types.newArtificialTypeVariable(WildcardCapturer.class, name, upperBounds);
        }
    
        private WildcardCapturer forTypeVariable(TypeVariable<?> typeParam) {
          return new WildcardCapturer(id) {
            @Override
            TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
              Set<Type> combined = new LinkedHashSet<>(asList(upperBounds));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

            when:
            fails()
    
            then:
            failure.assertHasCause("Please use the ObjectFactory.$method method to create a property of type $type$typeParam.")
    
            where:
            prop    | method                | type          | typeParam
            'prop1' | 'listProperty()'      | 'List'        | '<T>'
            'prop2' | 'setProperty()'       | 'Set'         | '<T>'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. src/go/types/decl.go

    		if t, _ := t.(*Interface); t != nil {
    			t.implicit = true
    		}
    		return t
    	}
    	return check.typ(x)
    }
    
    func (check *Checker) declareTypeParams(tparams []*TypeParam, names []*ast.Ident, scopePos token.Pos) []*TypeParam {
    	// Use Typ[Invalid] for the type constraint to ensure that a type
    	// is present even if the actual constraint has not been assigned
    	// yet.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/TypeResolver.java

          return Types.newArtificialTypeVariable(WildcardCapturer.class, name, upperBounds);
        }
    
        private WildcardCapturer forTypeVariable(TypeVariable<?> typeParam) {
          return new WildcardCapturer(id) {
            @Override
            TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
              Set<Type> combined = new LinkedHashSet<>(asList(upperBounds));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  6. src/go/internal/gcimporter/gcimporter_test.go

    		}
    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	tmpdir := mktmpdir(t)
    	defer os.RemoveAll(tmpdir)
    
    	// Check go files in test/typeparam, except those that fail for a known
    	// reason.
    	rootDir := filepath.Join(gorootTest, "typeparam")
    	list, err := os.ReadDir(rootDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, entry := range list {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	if typ == nil || seen[typ] {
    		return nil
    	}
    	if seen == nil {
    		seen = make(map[types.Type]bool)
    	}
    	seen[typ] = true
    
    	if tpar, ok := aliases.Unalias(typ).(*types.TypeParam); ok {
    		terms, err := typeparams.StructuralTerms(tpar)
    		if err != nil {
    			return nil // invalid type
    		}
    		for _, term := range terms {
    			subpath := lockPath(tpkg, term.Type(), seen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. src/go/types/index.go

    		// TODO(gri) report detailed failure cause for better error messages
    		var key, elem Type // key != nil: we must have all maps
    		mode := variable   // non-maps result mode
    		// TODO(gri) factor out closure and use it for non-typeparam cases as well
    		if typ.typeSet().underIs(func(u Type) bool {
    			l := int64(-1) // valid if >= 0
    			var k, e Type  // k is only set for maps
    			switch t := u.(type) {
    			case *Basic:
    				if isString(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/index.go

    		// TODO(gri) report detailed failure cause for better error messages
    		var key, elem Type // key != nil: we must have all maps
    		mode := variable   // non-maps result mode
    		// TODO(gri) factor out closure and use it for non-typeparam cases as well
    		if typ.typeSet().underIs(func(u Type) bool {
    			l := int64(-1) // valid if >= 0
    			var k, e Type  // k is only set for maps
    			switch t := u.(type) {
    			case *Basic:
    				if isString(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/instantiate.go

    	if check != nil {
    		check.error(atPos(pos), WrongTypeArgCount, msg)
    		return false
    	}
    
    	panic(fmt.Sprintf("%v: %s", pos, msg))
    }
    
    func (check *Checker) verify(pos syntax.Pos, tparams []*TypeParam, targs []Type, ctxt *Context) (int, error) {
    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top