Analysis API: get rid of KtTypeAndAnnotations & add annotations for every type
This commit is contained in:
@@ -30,3 +30,5 @@ class CustomAnnotationTypeAttribute(val annotations: List<FirAnnotation>) : Cone
|
||||
val ConeAttributes.custom: CustomAnnotationTypeAttribute? by ConeAttributes.attributeAccessor<CustomAnnotationTypeAttribute>()
|
||||
|
||||
val ConeAttributes.customAnnotations: List<FirAnnotation> get() = custom?.annotations.orEmpty()
|
||||
|
||||
val ConeKotlinType.customAnnotations: List<FirAnnotation> get() = attributes.customAnnotations
|
||||
|
||||
Reference in New Issue
Block a user