Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,517 for receivers (0.25 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    L: // unpack receiver type
    	// This accepts invalid receivers such as ***T and does not
    	// work for other invalid receivers, but we don't care. The
    	// validity of receiver expressions is checked elsewhere.
    	for {
    		switch t := rtyp.(type) {
    		case *syntax.ParenExpr:
    			rtyp = t.X
    		// case *ast.StarExpr:
    		//      ptr = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    	st, err := gridConn.NewStream(ctx, grid.HandlerTrace, payload)
    	if err != nil {
    		return
    	}
    	st.Results(func(b []byte) error {
    		select {
    		case traceCh <- b:
    		default:
    			// Do not block on slow receivers.
    			// Just recycle the buffer.
    			grid.PutByteBuffer(b)
    		}
    		return nil
    	})
    }
    
    func (client *peerRESTClient) doListen(ctx context.Context, listenCh chan<- []byte, v url.Values) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. test/escape5.go

    func f11(**int) {
    }
    func f12(_ **int) {
    }
    func f13() {
    	var x *int
    	f11(&x)
    	f12(&x)
    	runtime.KeepAlive(&x)
    }
    
    // Test for issue 24305 (passing to unnamed receivers does not escape).
    type U int
    
    func (*U) M()   {}
    func (_ *U) N() {}
    
    func fbad24305a() {
    	var u U
    	u.M()
    	u.N()
    }
    
    func fbad24305b() {
    	var u U
    	(*U).M(&u)
    	(*U).N(&u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  4. test/method5.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // Concrete types implementing M method.
    // Smaller than a word, word-sized, larger than a word.
    // Value and pointer receivers.
    
    type Tinter interface {
    	M(int, byte) (byte, int)
    }
    
    type Tsmallv byte
    
    func (v Tsmallv) M(x int, b byte) (byte, int) { return b, x+int(v) }
    
    type Tsmallp byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 6.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                    if (receiverExpression !is KtDotQualifiedExpression) {
                        // If the receiver is not a KtDotQualifiedExpression, it means we are hitting the end of nested receivers. In other
                        // words, this receiver expression should be pointing at an unqualified name of a class, whose class ID is
                        // `outerClassId`.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 37K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensions.kt

         *
         * We must rely on the dynamic cast and possible runtime failure here due to a Kotlin extension member limitation.
         * Kotlin currently can't disambiguate between invoke operators with more specific receivers in a type hierarchy.
         *
         * See https://youtrack.jetbrains.com/issue/KT-15711
         */
        private
        fun polymorphicDomainObjectContainer() =
            delegate as? PolymorphicDomainObjectContainer<T>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 22:09:44 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. src/crypto/internal/edwards25519/scalar.go

    //
    //	l = 2^252 + 27742317777372353535851937790883648493
    //
    // which is the prime order of the edwards25519 group.
    //
    // This type works similarly to math/big.Int, and all arguments and
    // receivers are allowed to alias.
    //
    // The zero value is a valid zero element.
    type Scalar struct {
    	// s is the scalar in the Montgomery domain, in the format of the
    	// fiat-crypto implementation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    	// 	L5: func _[T any]() { var s S[int]; s.Foo() }
    	//
    	// The receivers of methods on generic types are instantiations. L2 and L3
    	// instantiate S with the type-parameters A and B, which are scoped to the
    	// respective methods. L4 and L5 each instantiate S with int. Each of these
    	// instantiations has its own method set, full of methods (and thus objects)
    	// with receivers whose types are the respective instantiations. In other
    	// words, we have
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/crypto/internal/edwards25519/edwards25519.go

    	X, Y, Z field.Element
    }
    
    // Point represents a point on the edwards25519 curve.
    //
    // This type works similarly to math/big.Int, and all arguments and receivers
    // are allowed to alias.
    //
    // The zero value is NOT valid, and it may be used only as a receiver.
    type Point struct {
    	// Make the type not comparable (i.e. used with == or as a map key), as
    	// equivalent points can be represented by different Go values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. src/go/types/signature.go

    			fallthrough // continue with first receiver
    		case 1:
    			recv = recvList[0]
    		}
    		sig.recv = recv
    
    		// Delay validation of receiver type as it may cause premature expansion
    		// of types the receiver type is dependent on (see issues go.dev/issue/51232, go.dev/issue/51233).
    		check.later(func() {
    			// spec: "The receiver type must be of the form T or *T where T is a type name."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top