Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 105 for typexpr (2.14 sec)

  1. src/go/build/constraint/expr.go

    	isExpr()
    }
    
    // A TagExpr is an [Expr] for the single tag Tag.
    type TagExpr struct {
    	Tag string // for example, “linux” or “cgo”
    }
    
    func (x *TagExpr) isExpr() {}
    
    func (x *TagExpr) Eval(ok func(tag string) bool) bool {
    	return ok(x.Tag)
    }
    
    func (x *TagExpr) String() string {
    	return x.Tag
    }
    
    func tag(tag string) Expr { return &TagExpr{tag} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. fastapi/concurrency.py

    from typing import AsyncGenerator, ContextManager, TypeVar
    
    import anyio
    from anyio import CapacityLimiter
    from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool  # noqa
    from starlette.concurrency import run_in_threadpool as run_in_threadpool  # noqa
    from starlette.concurrency import (  # noqa
        run_until_first_complete as run_until_first_complete,
    )
    
    _T = TypeVar("_T")
    
    
    @asynccontextmanager
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Dec 25 17:57:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/encoding/gob/type_test.go

    	newtyp := getTypeUnlocked("int", reflect.TypeFor[int]())
    	if newtyp != tInt.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("uint", reflect.TypeFor[uint]())
    	if newtyp != tUint.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("string", reflect.TypeFor[string]())
    	if newtyp != tString.gobType() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/database/sql/fakedb_test.go

    	case "bool":
    		return reflect.TypeFor[bool]()
    	case "nullbool":
    		return reflect.TypeFor[NullBool]()
    	case "int16":
    		return reflect.TypeFor[int16]()
    	case "nullint16":
    		return reflect.TypeFor[NullInt16]()
    	case "int32":
    		return reflect.TypeFor[int32]()
    	case "nullint32":
    		return reflect.TypeFor[NullInt32]()
    	case "string":
    		return reflect.TypeFor[string]()
    	case "nullstring":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/encoding/gob/type.go

    var (
    	gobEncoderInterfaceType        = reflect.TypeFor[GobEncoder]()
    	gobDecoderInterfaceType        = reflect.TypeFor[GobDecoder]()
    	binaryMarshalerInterfaceType   = reflect.TypeFor[encoding.BinaryMarshaler]()
    	binaryUnmarshalerInterfaceType = reflect.TypeFor[encoding.BinaryUnmarshaler]()
    	textMarshalerInterfaceType     = reflect.TypeFor[encoding.TextMarshaler]()
    	textUnmarshalerInterfaceType   = reflect.TypeFor[encoding.TextUnmarshaler]()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. security/pkg/pki/util/san.go

    // an identity into a SAN extension.
    type IdentityType int
    
    const (
    	// TypeDNS represents a DNS name.
    	TypeDNS IdentityType = iota
    	// TypeIP represents an IP address.
    	TypeIP
    	// TypeURI represents a universal resource identifier.
    	TypeURI
    )
    
    var (
    	// Mapping from the type of an identity to the OID tag value for the X.509
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 14 06:50:22 UTC 2022
    - 6K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/Describables.java

                    return asMutable().toString();
                }
    
                private StringBuilder asMutable() {
                    String typeStr = type.toString();
                    StringBuilder result = new StringBuilder(typeStr.length() + name.length() + 3);
                    result.append(typeStr);
                    result.append(" '");
                    result.append(name);
                    result.append('\'');
                    return result;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  8. src/unique/clone_test.go

    	testCloneSeq[testStruct](t, cSeq(8))
    }
    
    func cSeq(stringOffsets ...uintptr) cloneSeq {
    	return cloneSeq{stringOffsets: stringOffsets}
    }
    
    func testCloneSeq[T any](t *testing.T, want cloneSeq) {
    	typName := reflect.TypeFor[T]().Name()
    	typ := abi.TypeOf(*new(T))
    	t.Run(typName, func(t *testing.T) {
    		got := makeCloneSeq(typ)
    		if !reflect.DeepEqual(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. src/encoding/json/decode_test.go

    	{CaseName: Name(""), in: `{"X": [1,2,3], "Y": 4}`, ptr: new(T), out: T{Y: 4}, err: &UnmarshalTypeError{"array", reflect.TypeFor[string](), 7, "T", "X"}},
    	{CaseName: Name(""), in: `{"X": 23}`, ptr: new(T), out: T{}, err: &UnmarshalTypeError{"number", reflect.TypeFor[string](), 8, "T", "X"}},
    	{CaseName: Name(""), in: `{"x": 1}`, ptr: new(tx), out: tx{}},
    	{CaseName: Name(""), in: `{"x": 1}`, ptr: new(tx), out: tx{}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  10. src/cmd/fix/cftype.go

    	// There's no easy way to map from an ast.Expr to all the places that use them, so
    	// we use reflect to find all such references.
    	if len(badNils) > 0 {
    		exprType := reflect.TypeFor[ast.Expr]()
    		exprSliceType := reflect.TypeFor[[]ast.Expr]()
    		walk(f, func(n any) {
    			if n == nil {
    				return
    			}
    			v := reflect.ValueOf(n)
    			if v.Type().Kind() != reflect.Pointer {
    				return
    			}
    			if v.IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top