Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 67 for typexpr (1 sec)

  1. src/html/template/js.go

    	"in":         true,
    	"instanceof": true,
    	"return":     true,
    	"throw":      true,
    	"try":        true,
    	"typeof":     true,
    	"void":       true,
    }
    
    var jsonMarshalType = reflect.TypeFor[json.Marshaler]()
    
    // indirectToJSONMarshaler returns the value, after dereferencing as many times
    // as necessary to reach the base type (or nil) or an implementation of json.Marshal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // values are taken into account.
    func (tr *TypeRepr) String() string {
    	if len(tr.Repr) == 0 {
    		return ""
    	}
    	if len(tr.FormatArgs) == 0 {
    		return tr.Repr
    	}
    	return fmt.Sprintf(tr.Repr, tr.FormatArgs...)
    }
    
    // Empty reports whether the result of String would be "".
    func (tr *TypeRepr) Empty() bool {
    	return len(tr.Repr) == 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. src/runtime/alg.go

    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/aristanetworks/goarista
    //   - github.com/bytedance/sonic
    //   - github.com/bytedance/go-tagexpr/v2
    //   - github.com/cloudwego/frugal
    //   - github.com/cloudwego/dynamicgo
    //   - github.com/v2fly/v2ray-core/v5
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    	fileinfo, err := os.Stat("testdata/small.txt")
    	if err != nil {
    		t.Fatal(err)
    	}
    	hdr, err := FileInfoHeader(fileinfo, "")
    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  5. src/database/sql/convert.go

    	case reflect.Bool:
    		return strconv.AppendBool(buf, rv.Bool()), true
    	case reflect.String:
    		s := rv.String()
    		return append(buf, s...), true
    	}
    	return
    }
    
    var valuerReflectType = reflect.TypeFor[driver.Valuer]()
    
    // callValuerValue returns vr.Value(), with one exception:
    // If vr.Value is an auto-generated method on a pointer type and the
    // pointer is nil, it would panic at runtime in the panicwrap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/encoding/json/encode.go

    	f = newTypeEncoder(t, true)
    	wg.Done()
    	encoderCache.Store(t, f)
    	return f
    }
    
    var (
    	marshalerType     = reflect.TypeFor[Marshaler]()
    	textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
    )
    
    // newTypeEncoder constructs an encoderFunc for a type.
    // The returned encoder only checks CanAddr when allowAddr is true.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. src/reflect/all_test.go

    	if ovf := TypeFor[float32]().OverflowFloat(ovfFloat32); !ovf {
    		t.Errorf("%v should overflow float32", ovfFloat32)
    	}
    	if ovf := TypeFor[float32]().OverflowFloat(-ovfFloat32); !ovf {
    		t.Errorf("%v should overflow float32", -ovfFloat32)
    	}
    
    	maxInt32 := int64(0x7fffffff)
    	if ovf := TypeFor[int32]().OverflowInt(maxInt32); ovf {
    		t.Errorf("%v wrongly overflows int32", maxInt32)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  8. src/html/template/exec_test.go

    // of the max int boundary.
    // We do it this way so the test doesn't depend on ints being 32 bits.
    var (
    	bigInt  = fmt.Sprintf("0x%x", int(1<<uint(reflect.TypeFor[int]().Bits()-1)-1))
    	bigUint = fmt.Sprintf("0x%x", uint(1<<uint(reflect.TypeFor[int]().Bits()-1)))
    )
    
    var execTests = []execTest{
    	// Trivial cases.
    	{"empty", "", "", nil, true},
    	{"text", "some text", "some text", nil, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    // of the max int boundary.
    // We do it this way so the test doesn't depend on ints being 32 bits.
    var (
    	bigInt  = fmt.Sprintf("0x%x", int(1<<uint(reflect.TypeFor[int]().Bits()-1)-1))
    	bigUint = fmt.Sprintf("0x%x", uint(1<<uint(reflect.TypeFor[int]().Bits()-1)))
    )
    
    var execTests = []execTest{
    	// Trivial cases.
    	{"empty", "", "", nil, true},
    	{"text", "some text", "some text", nil, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. src/cmd/cgo/out.go

    			fn(i, "", r.Type)
    			i++
    		} else {
    			for _, n := range r.Names {
    				fn(i, n.Name, r.Type)
    				i++
    			}
    		}
    	}
    }
    
    func c(repr string, args ...interface{}) *TypeRepr {
    	return &TypeRepr{repr, args}
    }
    
    // Map predeclared Go types to Type.
    var goTypes = map[string]*Type{
    	"bool":       {Size: 1, Align: 1, C: c("GoUint8")},
    	"byte":       {Size: 1, Align: 1, C: c("GoUint8")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top