Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 240 for typeOff (0.38 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            );
        }
    
        private static String typeOf(@Nullable Object instance) {
            if (instance == null) {
                return Object.class.getSimpleName();
            }
            if (instance instanceof GeneratedSubclass) {
                return ModelType.of(((GeneratedSubclass) instance).publicType()).getDisplayName();
            }
            return ModelType.typeOf(instance).getDisplayName();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. operator/pkg/util/reflect_test.go

    		},
    	}
    
    	for _, tt := range tests {
    		for vidx, v := range allTypes {
    			if got, want := tt.function(reflect.TypeOf(v)), isInListOfInterface(tt.okTypes, v); got != want {
    				t.Errorf("%s with %s (#%d): got: %t, want: %t", tt.desc, reflect.TypeOf(v), vidx, got, want)
    			}
    		}
    	}
    }
    
    type interfaceContainer struct {
    	I anInterface
    }
    
    type anInterface interface {
    	IsU()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/codec.go

    func DecodeInto(d Decoder, data []byte, into Object) error {
    	out, gvk, err := d.Decode(data, nil, into)
    	if err != nil {
    		return err
    	}
    	if out != into {
    		return fmt.Errorf("unable to decode %s into %v", gvk, reflect.TypeOf(into))
    	}
    	return nil
    }
    
    // EncodeOrDie is a version of Encode which will panic instead of returning an error. For tests.
    func EncodeOrDie(e Encoder, obj Object) string {
    	bytes, err := Encode(e, obj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:20:30 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    // 2. all type parameters must all be reifeid or values (TypeOf, KClass or Class)
    // 3. when overloading, prefer TypeOf over Class
    // 4. in case the policy forbids your overloads, discuss
    private
    fun kotlinExtensionFunctionsFor(type: ApiType, sinceSupplier: (String) -> String?): Sequence<KotlinExtensionFunction> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 21:41:53 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    		a.APIVersion, a.ObjectKind = "", ""
    		b.APIVersion, b.ObjectKind = "", ""
    		return a == b
    	},
    )
    
    func runTest(t *testing.T, source interface{}) {
    	name := reflect.TypeOf(source).Elem().Name()
    	TestObjectFuzzer.Fuzz(source)
    
    	_, codec := GetTestScheme()
    	data, err := runtime.Encode(codec, source.(runtime.Object))
    	if err != nil {
    		t.Errorf("%v: %v (%#v)", name, err, source)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    	if into != nil {
    		types, _, err := s.typer.ObjectKinds(into)
    		switch {
    		case runtime.IsNotRegisteredError(err):
    			pb, ok := into.(proto.Message)
    			if !ok {
    				return nil, &actual, errNotMarshalable{reflect.TypeOf(into)}
    			}
    			if err := proto.Unmarshal(unk.Raw, pb); err != nil {
    				return nil, &actual, err
    			}
    			return into, &actual, nil
    		case err != nil:
    			return nil, &actual, err
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/services/LLStandaloneFirElementByPsiElementChooser.kt

            if (fir.receiverParameter != null && !isTheSameTypes(
                    psi.receiverTypeReference!!,
                    fir.receiverParameter!!.typeRef,
                    isVararg = false,
                )
            ) {
                return false
            }
            return true
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 15 11:34:07 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                        typeRef.partiallyResolvedTypeRef,
                        expression,
                        session,
                        symbolBuilder,
                    )
                }
                is FirResolvedTypeRef -> {
                    return getSymbolsForResolvedTypeRef(typeRef, expression, session, symbolBuilder)
                }
                else -> throwUnexpectedFirElementError(
                    typeRef,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 37K bytes
    - Viewed (0)
  9. test/escape_reflect.go

    }
    
    var (
    	intTyp    = reflect.TypeOf(int(0))     // ERROR "0 does not escape"
    	uintTyp   = reflect.TypeOf(uint(0))    // ERROR "uint\(0\) does not escape"
    	stringTyp = reflect.TypeOf(string("")) // ERROR ".. does not escape"
    	bytesTyp  = reflect.TypeOf([]byte{})   // ERROR "\[\]byte{} does not escape"
    )
    
    // Unfortunate: should not escape.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/asm/ClassDependenciesVisitor.java

                maybeAddDependentType(types, Type.getType(descriptor));
                return new AnnotationVisitor(types);
            }
    
            @Override
            public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) {
                maybeAddDependentType(types, Type.getType(descriptor));
                return new AnnotationVisitor(types);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:49:15 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top