- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for addType (0.1 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
addType(T.Elem()) case *types.Slice: addType(T.Elem()) case *types.Array: addType(T.Elem()) 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)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
test/typeparam/adder.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" ) type AddType interface { int | int64 | string } // Add can add numbers or strings func Add[T AddType](a, b T) T { return a + b } func main() { if got, want := Add(5, 3), 8; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 559 bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java
linkElement.appendChild(addType(name, listener)); } }); linkElement.normalize(); if (linkElement.getChildNodes().getLength() == 1 && linkElement.getFirstChild() instanceof Element) { return linkElement.getFirstChild(); } return linkElement; } private Node addType(String className, GenerationListener listener) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt
private val propertyOriginalTypes = mutableMapOf<KClass<*>, MutableMap<String, KType>>() private val claimedFunctions = mutableMapOf<KClass<*>, MutableSet<KFunction<*>>>() fun addType(kClass: KClass<*>) { properties.getOrPut(kClass) { mutableMapOf() } propertyOriginalTypes.getOrPut(kClass) { mutableMapOf() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:02 UTC 2024 - 5.9K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGenerator.java
.addField(CONTEXT_FIELD) // actual content: .addMethod(visitMethodInsnBuilder.build()) .addFields(typeFieldByOwner.values()) .addType(factoryClass); } private static TypeSpec generateFactoryClass(String className, BytecodeInterceptorType interceptorType) { MethodSpec method = MethodSpec.methodBuilder("create")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 18:50:01 UTC 2024 - 27.4K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler_helpers.go
multiKey := multiAddrTypePortMapKey{} for _, addrType := range addrTypes { multiKey[addrType] = newAddrTypePortMapKey(endpointPorts, addrType) if _, ok := d.endpointsByKey[multiKey[addrType]]; !ok { d.endpointsByKey[multiKey[addrType]] = endpointsliceutil.EndpointSet{} } d.portsByKey[multiKey[addrType]] = endpointPorts } return multiKey }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/internal/obj/addrtype_string.go
var _AddrType_index = [...]uint8{0, 9, 20, 33, 41, 51, 62, 73, 81, 90, 100, 111, 123, 133, 145, 157} func (i AddrType) String() string { if i >= AddrType(len(_AddrType_index)-1) { return "AddrType(" + strconv.FormatInt(int64(i), 10) + ")" } return _AddrType_name[_AddrType_index[i]:_AddrType_index[i+1]]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 03:16:26 UTC 2022 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc
} }; } // namespace MlrtDialect::MlrtDialect(mlir::MLIRContext *context) : mlir::Dialect(/*name=*/"mlrt", context, mlir::TypeID::get<MlrtDialect>()) { addTypes<FutureType>(); addTypes<PromiseType>(); addTypes<AsyncHandleType>(); addInterfaces<MlrtInlinerInterface>(); addOperations< #define GET_OP_LIST #include "tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.cpp.inc" >(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/utils_test.go
}, Ports: ports, AddressType: addrType, Endpoints: []discovery.Endpoint{}, }, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { ep := endpoints.DeepCopy() tc.tweakEndpoint(ep) generatedSlice := newEndpointSlice(ep, ports, addrType, "") assert.EqualValues(t, tc.expectedSlice, *generatedSlice)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 23 15:40:23 UTC 2022 - 7.5K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/utils.go
// address types. type addrTypePortMapKey string // newAddrTypePortMapKey generates a PortMapKey from endpoint ports. func newAddrTypePortMapKey(endpointPorts []discovery.EndpointPort, addrType discovery.AddressType) addrTypePortMapKey { pmk := fmt.Sprintf("%s-%s", addrType, endpointsliceutil.NewPortMapKey(endpointPorts)) return addrTypePortMapKey(pmk) } func (pk addrTypePortMapKey) addressType() discovery.AddressType {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 8.8K bytes - Viewed (0)