Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for AllMethods (0.19 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/MethodCache.kt

        allMethods().firstAccessibleMatchingMethodOrNull(predicate)
    
    
    internal
    fun Iterable<Method>.firstAccessibleMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
        find(predicate)?.apply { isAccessible = true }
    
    
    internal
    fun Class<*>.firstMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
        allMethods().find(predicate)
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/identity.go

    		// identical. Match this behavior.
    		// TODO(mdempsky): Revisit this.
    		return true
    
    	case TINTER:
    		if len(t1.AllMethods()) != len(t2.AllMethods()) {
    			return false
    		}
    		for i, f1 := range t1.AllMethods() {
    			f2 := t2.AllMethods()[i]
    			if f1.Sym != f2.Sym || !identical(f1.Type, f2.Type, flags, assumedEqual) {
    				return false
    			}
    		}
    		return true
    
    	case TSTRUCT:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtilsTest.groovy

            then:
            methods.methodNames() == (["doSomething"] as Set)
            methods.allMethods().values().flatten()*.name == ["doSomething", "doSomething"]
            methods.allMethods().values().flatten()*.declaringClass == [Child, Base]
            methods.allMethods().values()*.declaredAnnotations.flatten()*.annotationType() == [Nullable, Incubating]
        }
    
        @Managed
        abstract class ManagedType  {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typeset.go

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]syntax.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos syntax.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. src/go/types/typeset.go

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]token.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos token.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/subr.go

    func implements(t, iface *types.Type, m, samename **types.Field, ptr *int) bool {
    	t0 := t
    	if t == nil {
    		return false
    	}
    
    	if t.IsInterface() {
    		i := 0
    		tms := t.AllMethods()
    		for _, im := range iface.AllMethods() {
    			for i < len(tms) && tms[i].Sym != im.Sym {
    				i++
    			}
    			if i == len(tms) {
    				*m = im
    				*samename = nil
    				*ptr = 0
    				return false
    			}
    			tm := tms[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/StructSchemaExtractionStrategySupport.java

            Set<Method> nonPropertyMethods = Sets.newLinkedHashSet(Iterables.transform(candidateMethods.allMethods().keySet(), new Function<Wrapper<Method>, Method>() {
                @Override
                public Method apply(Wrapper<Method> method) {
                    return method.get();
                }
            }));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaSerializationEncodingLookup.kt

            return encodings.computeIfAbsent(type) { t -> calculateEncoding(t) }.encoding
        }
    
        private
        fun calculateEncoding(type: Class<*>): EncodingDetails {
            val candidates = type.allMethods()
            val encoding = writeReplaceEncodingFor(candidates)
                ?: readResolveEncodingFor(candidates)
                ?: writeObjectEncodingFor(candidates)
                ?: readObjectEncodingFor(candidates)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/go/doc/doc.go

    const (
    	// AllDecls says to extract documentation for all package-level
    	// declarations, not just exported ones.
    	AllDecls Mode = 1 << iota
    
    	// AllMethods says to show all embedded methods, not just the ones of
    	// invisible (unexported) anonymous fields.
    	AllMethods
    
    	// PreserveAST says to leave the AST unmodified. Originally, pieces of
    	// the AST such as function bodies were nil-ed out to save memory in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/go/doc/doc_test.go

    			}
    		})
    	}
    }
    
    func Test(t *testing.T) {
    	t.Run("default", func(t *testing.T) { test(t, 0) })
    	t.Run("AllDecls", func(t *testing.T) { test(t, AllDecls) })
    	t.Run("AllMethods", func(t *testing.T) { test(t, AllMethods) })
    }
    
    func TestFuncs(t *testing.T) {
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "funcs.go", strings.NewReader(funcsTestFile), parser.ParseComments)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:52 UTC 2022
    - 6.7K bytes
    - Viewed (0)
Back to top