Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for HasAnnotation (0.37 sec)

  1. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/annotations/KtAnnotated.kt

            get() = annotations
    }
    
    public typealias KtAnnotated = KaAnnotated
    
    /**
     * A list of annotations applied.
     *
     * To check if annotation is present, please use [hasAnnotation].
     *
     * @see [KaAnnotationList.annotations]
     */
    @Deprecated("Use the 'annotations' the member property instead.")
    public val KaAnnotated.annotations: List<KaAnnotation>
        get() = annotations
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/RuleApplicationScope.java

                List<Annotation> annotations = parameterAnnotations.get(paramIndex);
                boolean annotatedWithEach = hasAnnotation(annotations, Each.class);
                if (paramIndex == subjectParamIndex) {
                    if (annotatedWithEach && hasAnnotation(annotations, Path.class)) {
                        problems.add(ruleDefinition, "Rule subject must not be annotated with both @Path and @Each.");
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/annotations/KtAnnotationsList.kt

         * ```
         * annotationsList.hasAnnotation(classId) == annotationsList.annotations.any { it.classId == classId }
         * ```
         * @param classId [ClassId] to search
         */
        public operator fun contains(classId: ClassId): Boolean
    
        @Deprecated("Use 'contains' instead.", replaceWith = ReplaceWith("contains(classId)"))
        public fun hasAnnotation(classId: ClassId): Boolean = contains(classId)
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

            }
        }
    
        private static boolean hasNullableAnnotation(CtField field) {
            return NULLABLE_ANNOTATIONS.any { field.hasAnnotation(it) }
        }
    
        private static boolean hasNullableAnnotation(CtMethod method) {
            return NULLABLE_ANNOTATIONS.any { method.hasAnnotation(it) }
        }
    
        private static boolean isNullableCtAnnotation(Object ann) {
            if (Proxy.isProxyClass(ann.class)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 13 10:04:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForReceiverParameter.kt

        override fun get(index: Int): KaAnnotation = withValidityAssertion {
            return backingAnnotations[index]
        }
    
        override fun contains(classId: ClassId): Boolean = withValidityAssertion {
            return hasAnnotation(firCallableSymbol, classId, useSiteSession, receiverParameter)
        }
    
        override fun get(classId: ClassId, ): List<KaAnnotation> = withValidityAssertion {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/project/schemaFromGradleExtensions.kt

        private
        fun hasRestrictedAnnotationCached(kClass: KClass<*>) = hasRestrictedAnnotationCache.computeIfAbsent(kClass) { hasAnnotation(it) }
    
        private
        fun hasAnnotation(kClass: KClass<*>) = kClass.annotations.any { annotationType.isInstance(it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:07 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolProviderByJavaPsi.kt

            if (psiClass.isKotlinCompiledClass()) return null
    
            return KaFirPsiJavaClassSymbol(psiClass, analysisSession)
        }
    
        private fun PsiClass.isKotlinCompiledClass() =
            this is ClsElementImpl && hasAnnotation(JvmAnnotationNames.METADATA_FQ_NAME.asString())
    
        override fun getCallableSymbol(callable: PsiMember): KaCallableSymbol? {
            if (callable !is PsiMethod && callable !is PsiField) return null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    			object: createPod("p1"),
    		},
    	}
    
    	for _, scenario := range scenarios {
    		t.Run(scenario.name, func(t *testing.T) {
    			hasAnnotation, err := storage.HasInitialEventsEndBookmarkAnnotation(scenario.object)
    			require.NoError(t, err)
    			require.Equal(t, scenario.expectAnnotation, hasAnnotation)
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForDeclaration.kt

        override fun get(index: Int): KaAnnotation = withValidityAssertion {
            return backingAnnotations[index]
        }
    
        override fun contains(classId: ClassId): Boolean = withValidityAssertion {
            return hasAnnotation(firSymbol, classId, useSiteSession)
        }
    
        override fun get(classId: ClassId): List<KaAnnotation> = withValidityAssertion {
            return annotationsByClassId(firSymbol, classId, builder)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/annotations/KtFe10AnnotationsList.kt

                        add(classId)
                    }
                }
            }
    
        override fun contains(classId: ClassId): Boolean = withValidityAssertion {
            fe10Annotations.hasAnnotation(classId.asSingleFqName())
        }
    
        override fun get(classId: ClassId): List<KaAnnotation> = withValidityAssertion {
            if (classId in ignoredAnnotations) return@withValidityAssertion emptyList()
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top