Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,247 for Imethod (0.14 sec)

  1. src/internal/abi/type.go

    	return unsafe.Slice(t.GCData, int(end))[begin:]
    }
    
    // Method on non-interface type
    type Method struct {
    	Name NameOff // name of method
    	Mtyp TypeOff // method type (without receiver)
    	Ifn  TextOff // fn used in interface call (one-word receiver)
    	Tfn  TextOff // fn used for normal method call
    }
    
    // UncommonType is present only for defined types or types with methods
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. src/cmd/doc/pkg.go

    		}
    
    		// Collect and print only the methods that match.
    		var methods []*ast.Field
    		for _, iMethod := range inter.Methods.List {
    			// This is an interface, so there can be only one name.
    			// TODO: Anonymous methods (embedding)
    			if len(iMethod.Names) == 0 {
    				continue
    			}
    			name := iMethod.Names[0].Name
    			if match(method, name) {
    				methods = append(methods, iMethod)
    				found = true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/deadcode.go

    //  3. reflect.Value.Method (or MethodByName), or reflect.Type.Method
    //     (or MethodByName)
    //
    // The first case is handled by the flood fill, a directly called method
    // is marked as reachable.
    //
    // The second case is handled by decomposing all reachable interface
    // types into method signatures. Each encountered method is compared
    // against the interface method signatures, if it matches it is marked
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/vet/testdata/method/method.go

    // Copyright 2010 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.
    
    // This file contains the code to check canonical methods.
    
    package method
    
    import "fmt"
    
    type MethodTest int
    
    func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan\(fmt\.ScanState, rune\) error"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 394 bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Methods.java

            protected int doHash(Method method) {
                return new HashCodeBuilder()
                    .append(method.getName())
                    .append(method.getParameterTypes())
                    .toHashCode();
            }
        };
    
        /**
         * Equivalence of methods based on method name, the number, type and order of parameters, and return types.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. test/method2.go

    	val() int
    }
    
    var _ = (*Val).val // ERROR "method|type \*Val is pointer to interface, not interface"
    
    var v Val
    var pv = &v
    
    var _ = pv.val() // ERROR "undefined|pointer to interface"
    var _ = pv.val   // ERROR "undefined|pointer to interface"
    
    func (t *T) g() int { return t.a }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 22:48:40 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-method.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-method
    spec:
      rules:
      - matches:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 145 bytes
    - Viewed (0)
  8. test/method4.go

    // rundir
    
    // Copyright 2012 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 expressions with arguments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 07 21:22:01 UTC 2012
    - 230 bytes
    - Viewed (0)
  9. test/method.go

    	func() {
    		defer expectPanic()
    		a.h() // dynamic error: nil dereference in a.B.D->f()
    	}()
    	a.i()
    
    	// Non-addressable value receiver.
    	A(a).f()
    	// A(a).g() // static error: cannot call pointer method on A literal.B.C
    	func() {
    		defer expectPanic()
    		A(a).h() // dynamic error: nil dereference in A().B.D->f()
    	}()
    	A(a).i()
    
    	// Pointer receiver.
    	(&a).f()
    	(&a).g()
    	func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 11 23:20:52 UTC 2013
    - 5.2K bytes
    - Viewed (0)
  10. test/method6.go

    // license that can be found in the LICENSE file.
    
    // Verify that pointer method calls are caught during typechecking.
    // Reproducer extracted and adapted from method.go
    
    package foo
    
    type A struct {
    	B
    }
    type B int
    
    func (*B) g() {}
    
    var _ = func() {
    	var a A
    	A(a).g() // ERROR "cannot call pointer method .*on|cannot take the address of"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 467 bytes
    - Viewed (0)
Back to top