Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,062 for tparams (0.49 sec)

  1. src/go/parser/testdata/tparams.go2

    Robert Griesemer <******@****.***> 1698787325 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/testdata/tparams.go

    Robert Griesemer <******@****.***> 1698784165 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/infer.go

    	// example by renaming the type parameter P into P2.
    	if len(tparams) == 0 {
    		return nil, typ // nothing to do
    	}
    
    	tparams2 := make([]*TypeParam, len(tparams))
    	for i, tparam := range tparams {
    		tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil)
    		tparams2[i] = NewTypeParam(tname, nil)
    		tparams2[i].index = tparam.index // == i
    	}
    
    	renameMap := makeRenameMap(tparams, tparams2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/signature.go

    		_, rname, rparams := check.unpackRecv(recvPar.Type, true)
    		if len(rparams) > 0 {
    			// The scope of the type parameter T in "func (r T[T]) f()"
    			// starts after f, not at "r"; see #52038.
    			scopePos := ftyp.Pos()
    			tparams := make([]*TypeParam, len(rparams))
    			for i, rparam := range rparams {
    				tparams[i] = check.declareTypeParam(rparam, scopePos)
    			}
    			sig.rparams = bindTParams(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. src/go/types/signature.go

    		_, rname, rparams := check.unpackRecv(recvPar.List[0].Type, true)
    		if len(rparams) > 0 {
    			// The scope of the type parameter T in "func (r T[T]) f()"
    			// starts after f, not at "r"; see #52038.
    			scopePos := ftyp.Params.Pos()
    			tparams := check.declareTypeParams(nil, rparams, scopePos)
    			sig.rparams = bindTParams(tparams)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. src/go/types/typelists.go

    // TypeParamList holds a list of type parameters.
    type TypeParamList struct{ tparams []*TypeParam }
    
    // Len returns the number of type parameters in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeParamList) Len() int { return len(l.list()) }
    
    // At returns the i'th type parameter in the list.
    func (l *TypeParamList) At(i int) *TypeParam { return l.tparams[i] }
    
    // list is for internal use where we expect a []*TypeParam.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. src/go/types/infer.go

    	// example by renaming the type parameter P into P2.
    	if len(tparams) == 0 {
    		return nil, typ // nothing to do
    	}
    
    	tparams2 := make([]*TypeParam, len(tparams))
    	for i, tparam := range tparams {
    		tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil)
    		tparams2[i] = NewTypeParam(tname, nil)
    		tparams2[i].index = tparam.index // == i
    	}
    
    	renameMap := makeRenameMap(tparams, tparams2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/ureader.go

    }
    
    func (r *reader) signature(recv *types.Var, rtparams, tparams []*types.TypeParam) *types.Signature {
    	r.Sync(pkgbits.SyncSignature)
    
    	params := r.params()
    	results := r.params()
    	variadic := r.Bool()
    
    	return types.NewSignatureType(recv, rtparams, tparams, params, results, variadic)
    }
    
    func (r *reader) params() *types.Tuple {
    	r.Sync(pkgbits.SyncParams)
    
    	params := make([]*types.Var, r.Len())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    			if tparams := T.TypeParams(); tparams != nil {
    				for i := 0; i < tparams.Len(); i++ {
    					addType(tparams.At(i))
    				}
    			}
    		case *types.Struct:
    			for i := 0; i < T.NumFields(); i++ {
    				addObj(T.Field(i))
    			}
    		case *types.Tuple:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/call.go

    		// are rare.)
    		name := ""
    		if len(params) > 0 && params[0].name != "" {
    			// name needed
    			name = sig.recv.name
    			if name == "" {
    				name = "_"
    			}
    		}
    		params = append([]*Var{NewVar(sig.recv.pos, sig.recv.pkg, name, x.typ)}, params...)
    		x.mode = value
    		x.typ = &Signature{
    			tparams:  sig.tparams,
    			params:   NewTuple(params...),
    			results:  sig.results,
    			variadic: sig.variadic,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top