Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,085 for nparams (0.16 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    		return nil // not variadic
    	}
    
    	params := sig.Params()
    	nparams := params.Len() // variadic => nonzero
    
    	args := params.At(nparams - 1)
    	iface, ok := args.Type().(*types.Slice).Elem().(*types.Interface)
    	if !ok || !iface.Empty() {
    		return nil // final (args) param is not ...interface{}
    	}
    
    	// Is second last param 'format string'?
    	var format *types.Var
    	if nparams >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/config/param/params.go

    // limitations under the License.
    
    package param
    
    // Params for a Template.
    type Params map[string]any
    
    // NewParams returns a new Params instance.
    func NewParams() Params {
    	return make(Params)
    }
    
    func (p Params) Get(k string) any {
    	return p[k]
    }
    
    func (p Params) GetWellKnown(k WellKnown) any {
    	return p[k.String()]
    }
    
    func (p Params) Set(k string, v any) Params {
    	p[k] = v
    	return p
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. 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)
  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. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/FunctionExtractor.kt

            val semanticsFromSignature = FunctionSemanticsInternal.DefaultPure(returnTypeClassifier.toDataTypeRefOrError())
    
            val fnParams = function.parameters
            val params = fnParams.filterIndexed { index, _ ->
                index != fnParams.lastIndex || configureLambdas.getTypeConfiguredByLambda(returnTypeClassifier) == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/crypto/elliptic/params.go

    		return specific.ScalarBaseMult(k)
    	}
    
    	return curve.ScalarMult(curve.Gx, curve.Gy, k)
    }
    
    func matchesSpecificCurve(params *CurveParams) (Curve, bool) {
    	for _, c := range []Curve{p224, p256, p384, p521} {
    		if params == c.Params() {
    			return c, true
    		}
    	}
    	return nil, false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 9.6K 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/go/internal/gcimporter/iimport.go

    func (r *importReader) kind() itag {
    	return itag(r.uint64())
    }
    
    func (r *importReader) signature(recv *types.Var, rparams, tparams []*types.TypeParam) *types.Signature {
    	params := r.paramList()
    	results := r.paramList()
    	variadic := params.Len() > 0 && r.bool()
    	return types.NewSignatureType(recv, rparams, tparams, params, results, variadic)
    }
    
    func (r *importReader) tparamList() []*types.TypeParam {
    	n := r.uint64()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/path-params.md

    <img src="/img/tutorial/path-params/image01.png">
    
    !!! check "Заметка"
        Ещё раз, просто используя определения типов, **FastAPI** обеспечивает автоматическую интерактивную документацию (с интеграцией Swagger UI).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top