- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,517 for receivers (0.14 sec)
-
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/transformation/OriginReplacement.kt
is ObjectOrigin.ConfiguringLambdaReceiver -> origin.copy(receiver = replace(origin.receiver), parameterBindings = replaceInArgs(origin.parameterBindings))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 14:27:23 UTC 2024 - 4.7K bytes - Viewed (0) -
test/method2.go
// Verify that pointers and interface types cannot be method receivers. // Does not compile. package main type T struct { a int } type P *T type P1 *T func (p P) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver|invalid receiver" func (p *P1) val() int { return 1 } // ERROR "receiver.* pointer|invalid pointer or interface receiver|invalid receiver" type I interface{} type I1 interface{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 10 22:48:40 UTC 2022 - 1.2K bytes - Viewed (0) -
test/interface/receiver.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test Implicit methods for embedded types and // mixed pointer and non-pointer receivers. package main type T int var nv, np int func (t T) V() { if t != 42 { panic(t) } nv++ } func (t *T) P() { if *t != 42 { println(t, *t) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 1.3K bytes - Viewed (0) -
src/go/types/interface.go
// modify their types by setting missing receivers. // // To avoid race conditions, the interface's type set should be computed before // concurrent use of the interface, by explicitly calling Complete. func NewInterfaceType(methods []*Func, embeddeds []Type) *Interface { if len(methods) == 0 && len(embeddeds) == 0 { return &emptyInterface } // set method receivers if necessary typ := (*Checker)(nil).newInterface()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 8.1K bytes - Viewed (0) -
analysis/analysis-api/build.gradle.kts
explicitApi() } sourceSets { "main" { projectDefault() } "test" { projectDefault() } } tasks.withType<KotlinJvmCompile>().configureEach { compilerOptions.freeCompilerArgs.add("-Xcontext-receivers") } testsJar() projectTest { workingDir = rootDir
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon May 27 17:22:24 UTC 2024 - 1.1K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/base/KtContextReceiver.kt
/** * A context receiver of function/property type which are directly specified in the code * * E.g, for the following code * ``` * context(a@Int) * fun foo(){} * ``` * * the context receiver is `KaContextReceiver(type=KtClassType(Int), label="a")` */ public abstract class KaContextReceiver : KaLifetimeOwner { /** * Type of the context receiver * * @see KaContextReceiver
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.5K bytes - Viewed (0) -
test/interface/struct.go
check(i.Get() == 1, "f3 i") check(s.i == 1, "f3 s") } type S2 struct { i int } func (p *S2) Get() int { return p.i } func (p *S2) Put(i int) { p.i = i } // Disallowed by restriction of values going to pointer receivers // func f4() { // s := S2{1} // var i I1 = s // i.Put(2) // check(i.Get() == 2, "f4 i") // check(s.i == 1, "f4 s") // } func f5() { s := S2{1} var i I1 = &s i.Put(2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 2.4K bytes - Viewed (0) -
samples/open-telemetry/tracing/README.md
kubectl -n observability apply -f ../otel.yaml ``` The otel-collector will create a grpc receiver on port `4317`, and later the sidecars will report trace information to this grpc port. You can find more details from [here](https://github.com/open-telemetry/opentelemetry-collector). Below is the configuration: ```yaml receivers: otlp: protocols: grpc: http: processors: batch: exporters:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Feb 18 16:38:12 UTC 2024 - 4.5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/FirCallableSignature.kt
if (receiverType != declaration.receiverParameter?.typeRef?.renderType()) return false val receivers = declaration.contextReceivers for ((index, parameter) in contextReceiverTypes.withIndex()) { if (receivers[index].typeRef.renderType() != parameter) return false } if (declaration is FirFunction) { requireNotNull(parameters)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Fri Jun 07 16:54:06 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_predicates.go
// generic type. func Satisfies(V Type, T *Interface) bool { return (*Checker)(nil).implements(nopos, V, T, true, nil) } // Identical reports whether x and y are identical types. // Receivers of [Signature] types are ignored. // // Predicates such as [Identical], [Implements], and // [Satisfies] assume that both operands belong to a // consistent collection of symbols ([Object] values).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0)