Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,517 for receivers (0.21 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCall.kt

        override val token: KaLifetimeToken get() = backingPartiallyAppliedSymbol.token
    
        /**
         * The function and receivers for this call.
         */
        override val partiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaFunctionLikeSymbol> get() = withValidityAssertion { backingPartiallyAppliedSymbol }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. test/ken/ptrfun.go

    // run
    
    // Copyright 2009 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.
    
    // Test method invocation with pointer receivers and function-valued fields.
    
    package main
    
    type C struct {
    	a	int;
    	x	func(p *C)int;
    }
    
    func (this *C) f()int {
    	return this.a;
    }
    
    func
    main() {
    	var v int;
    	var c *C;
    
    	c = new(C);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 617 bytes
    - Viewed (0)
  3. src/go/types/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.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/build.gradle.kts

                    "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction",
                )
            )
            freeCompilerArgs.add("-Xcontext-receivers")
        }
    }
    
    
    projectTest(jUnitMode = JUnitMode.JUnit5) {
        dependsOn(":dist")
        workingDir = rootDir
        useJUnitPlatform()
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. internal/pubsub/pubsub.go

    	maxSubscribers int32
    
    	// not atomics:
    	subs []*Sub[T]
    	sync.RWMutex
    }
    
    // Publish message to the subscribers.
    // Note that publish is always non-blocking send so that we don't block on slow receivers.
    // Hence receivers should use buffered channel so as not to miss the published events.
    func (ps *PubSub[T, M]) Publish(item T) {
    	ps.RLock()
    	defer ps.RUnlock()
    	for _, sub := range ps.subs {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/build.gradle.kts

    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
        compilerOptions.optIn.add("org.jetbrains.kotlin.analysis.api.KaAnalysisApiInternals")
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/container/heap/example_intheap_test.go

    func (h IntHeap) Less(i, j int) bool { return h[i] < h[j] }
    func (h IntHeap) Swap(i, j int)      { h[i], h[j] = h[j], h[i] }
    
    func (h *IntHeap) Push(x any) {
    	// Push and Pop use pointer receivers because they modify the slice's length,
    	// not just its contents.
    	*h = append(*h, x.(int))
    }
    
    func (h *IntHeap) Pop() any {
    	old := *h
    	n := len(old)
    	x := old[n-1]
    	*h = old[0 : n-1]
    	return x
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaPartiallyAppliedSymbol.kt

        /**
         * The dispatch receiver for this symbol access. Dispatch receiver is available if the symbol is declared inside a class or object.
         */
        public val dispatchReceiver: KaReceiverValue? by validityAsserted(dispatchReceiver)
    
        /**
         * The extension receiver for this symbol access. Extension receiver is available if the symbol is declared with an extension receiver.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/java/modules-with-transform/README.adoc

    include::sample[dir="groovy",files="application/build.gradle[tags=extraModuleInfo]"]
    ====
    
    You can run the example application like this:
    
    ```
    run --args='-json {"message":"Hello","receivers":["Lisa","John"]} -debug'
    ```
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/interface.go

    // NewInterfaceType takes ownership of the provided methods and may modify their types
    // by setting missing receivers.
    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()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top