Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TypeArgs (1.83 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java

                builder.append("...");
            }
            return builder.toString();
        }
    
        public TypeMetaData addTypeArg(TypeMetaData typeArg) {
            if (typeArgs == null) {
                typeArgs = new ArrayList<TypeMetaData>();
            }
            typeArgs.add(typeArg);
            return this;
        }
    
        @Override
        public void visitTypes(Action<TypeMetaData> action) {
            if (wildcard) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/99-minor/go/types/67143.md

    The methods [Alias.Origin], [Alias.SetTypeParams], [Alias.TypeParams],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:32:30 UTC 2024
    - 150 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go

    	if !Vnamed || !Tnamed {
    		return types.AssignableTo(V, T)
    	}
    
    	vtparams := VN.TypeParams()
    	ttparams := TN.TypeParams()
    	if vtparams.Len() == 0 || vtparams.Len() != ttparams.Len() || VN.TypeArgs().Len() != 0 || TN.TypeArgs().Len() != 0 {
    		return types.AssignableTo(V, T)
    	}
    
    	// V and T have the same (non-zero) number of type params. Instantiate both
    	// with the type parameters of V. This must always succeed for V, and will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/alias.go

    func (a *Alias) SetTypeParams(tparams []*TypeParam) {
    	assert(a.targs == nil)
    	a.tparams = bindTParams(tparams)
    }
    
    // TypeArgs returns the type arguments used to instantiate the Alias type.
    // If a is not an instance of a generic alias, the result is nil.
    func (a *Alias) TypeArgs() *TypeList { return a.targs }
    
    // Rhs returns the type R on the right-hand side of an alias
    // declaration "type A = R", which may be another alias.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/go/types/alias.go

    func (a *Alias) SetTypeParams(tparams []*TypeParam) {
    	assert(a.targs == nil)
    	a.tparams = bindTParams(tparams)
    }
    
    // TypeArgs returns the type arguments used to instantiate the Alias type.
    // If a is not an instance of a generic alias, the result is nil.
    func (a *Alias) TypeArgs() *TypeList { return a.targs }
    
    // Rhs returns the type R on the right-hand side of an alias
    // declaration "type A = R", which may be another alias.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/typeparams/free.go

    			if w.Has(term.Type()) {
    				return true
    			}
    		}
    
    	case *types.Map:
    		return w.Has(t.Key()) || w.Has(t.Elem())
    
    	case *types.Chan:
    		return w.Has(t.Elem())
    
    	case *types.Named:
    		args := t.TypeArgs()
    		// TODO(taking): this does not match go/types/infer.go. Check with rfindley.
    		if params := t.TypeParams(); params.Len() > args.Len() {
    			return true
    		}
    		for i, n := 0, args.Len(); i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    					addObj(T.Method(i))
    				}
    				if tparams := T.TypeParams(); tparams != nil {
    					for i := 0; i < tparams.Len(); i++ {
    						addType(tparams.At(i))
    					}
    				}
    				if targs := T.TypeArgs(); targs != nil {
    					for i := 0; i < targs.Len(); i++ {
    						addType(targs.At(i))
    					}
    				}
    			}
    		case *types.Pointer:
    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/iexport.go

    //     }
    //
    //     // Instantiation of a generic type (like List[T2] or List[int])
    //     type InstanceType struct {
    //         Tag     itag // instanceType
    //         Pos     pos
    //         TypeArgs []typeOff
    //         BaseType typeOff
    //     }
    //
    //     type UnionType struct {
    //         Tag     itag // interfaceType
    //         Terms   []struct {
    //             tilde bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. api/go1.23.txt

    pkg go/types, method (*Alias) Origin() *Alias #67143
    pkg go/types, method (*Alias) Rhs() Type #66559
    pkg go/types, method (*Alias) SetTypeParams([]*TypeParam) #67143
    pkg go/types, method (*Alias) TypeArgs() *TypeList #67143
    pkg go/types, method (*Alias) TypeParams() *TypeParamList #67143
    pkg go/types, method (*Func) Signature() *Signature #65772
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. src/go/types/mono.go

    			assert(typ.Obj().Pkg() == pkg)
    			flow(w.typeParamVertex(typ), typ)
    
    		case *Named:
    			if src := w.localNamedVertex(pkg, typ.Origin()); src >= 0 {
    				flow(src, typ)
    			}
    
    			targs := typ.TypeArgs()
    			for i := 0; i < targs.Len(); i++ {
    				do(targs.At(i))
    			}
    
    		case *Array:
    			do(typ.Elem())
    		case *Basic:
    			// ok
    		case *Chan:
    			do(typ.Elem())
    		case *Map:
    			do(typ.Key())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top