- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 539 for typeDoc (0.17 sec)
-
src/cmd/doc/pkg.go
} } if len(specs) == 0 { return } value.Decl.Specs = specs pkg.emit(value.Doc, value.Decl) printed[value.Decl] = true } // typeDoc prints the docs for a type, including constructors and other items // related to it. func (pkg *Package) typeDoc(typ *doc.Type) { decl := typ.Decl spec := pkg.findTypeSpec(decl, typ.Name) trimUnexportedElems(spec)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/reflect/TypeOf.java
@Override public TypeOf<?> apply(ModelType<?> it) { return typeOf(it); } }); } private static <U> TypeOf<U> typeOf(ModelType<U> componentType) { return new TypeOf<U>(componentType) { }; } private TypeOf<?> nullableTypeOf(Class<?> type) { return type != null ? typeOf(type)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 10.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package inspector // This file defines func typeOf(ast.Node) uint64. // // The initial map-based implementation was too slow; // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196 import ( "go/ast" "math" ) const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
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) -
src/reflect/type_test.go
{"int64", reflect.TypeOf(int64(1)), true}, {"uint64", reflect.TypeOf(uint64(1)), true}, {"*[4]int", reflect.TypeOf(&[4]int{}), true}, {"chan int64", reflect.TypeOf(make(chan int64)), true}, {"map[int]int", reflect.TypeOf(make(map[int]int)), true}, {"string", reflect.TypeOf(""), true}, {"[]int", reflect.TypeOf([]int{}), true}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 4.2K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go
obj, err := scheme.New(gvk) if err != nil { return nil, err } fill("", 0, reflect.TypeOf(obj), reflect.ValueOf(obj), fillFuncs, map[reflect.Type]bool{}) // Set the kind and apiVersion if typeAcc, err := apimeta.TypeAccessor(obj); err != nil { return nil, err } else { typeAcc.SetKind(gvk.Kind) typeAcc.SetAPIVersion(gvk.GroupVersion().String()) } return obj, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 19:12:59 UTC 2023 - 6.5K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apimachinery/pkg/conversion/converter.go
typeFrom := reflect.TypeOf(from) typeTo := reflect.TypeOf(to) if typeFrom.Kind() != reflect.Pointer { return fmt.Errorf("expected pointer arg for 'from' param 0, got: %v", typeFrom) } if typeTo.Kind() != reflect.Pointer { return fmt.Errorf("expected pointer arg for 'to' param 1, got: %v", typeTo) } c.ignoredUntypedConversions[typePair{typeFrom, typeTo}] = struct{}{} return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 7.4K bytes - Viewed (0) -
src/unique/clone_test.go
} 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) { t.Errorf("unexpected cloneSeq for type %s: got %#v, want %#v", typName, 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)