Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for HasAnnotation (0.28 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt

    ): Collection<ClassId> = annotationContainer.resolvedAnnotationsWithClassIds(firSymbol).mapNotNull {
        it.toAnnotationClassId(useSiteSession)
    }
    
    internal fun hasAnnotation(
        firSymbol: FirBasedSymbol<*>,
        classId: ClassId,
        useSiteSession: FirSession,
        annotationContainer: FirAnnotationContainer = firSymbol.fir,
    ): Boolean {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt

            val apiClass = getFrontendIndependentKClassOf(symbol)
            printer.withIndent {
                val members = apiClass.members
                    .filterIsInstance<KProperty<*>>()
                    .filter { !it.hasAnnotation<Deprecated>() && it.name !in ignoredPropertyNames }
                    .sortedBy { it.name }
                appendLine()
                printCollectionIfNotEmpty(members, separator = "\n") { member ->
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top