[FIR] FirBasedSymbol: add internal annotation for internal things
^KT-54417
This commit is contained in:
committed by
Space Team
parent
d6fbcef85a
commit
ef5a3303b2
@@ -52,16 +52,19 @@ abstract class FirBasedSymbol<E : FirDeclaration> {
|
|||||||
get() = fir.resolvedAnnotationClassIds(this)
|
get() = fir.resolvedAnnotationClassIds(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SymbolInternals
|
||||||
fun FirAnnotationContainer.resolvedAnnotationsWithArguments(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
|
fun FirAnnotationContainer.resolvedAnnotationsWithArguments(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
|
||||||
anchorElement.lazyResolveToPhase(FirResolvePhase.ANNOTATIONS_ARGUMENTS_MAPPING)
|
anchorElement.lazyResolveToPhase(FirResolvePhase.ANNOTATIONS_ARGUMENTS_MAPPING)
|
||||||
return annotations
|
return annotations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SymbolInternals
|
||||||
fun FirAnnotationContainer.resolvedAnnotationsWithClassIds(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
|
fun FirAnnotationContainer.resolvedAnnotationsWithClassIds(anchorElement: FirBasedSymbol<*>): List<FirAnnotation> {
|
||||||
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
|
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
|
||||||
return annotations
|
return annotations
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SymbolInternals
|
||||||
fun FirAnnotationContainer.resolvedAnnotationClassIds(anchorElement: FirBasedSymbol<*>): List<ClassId> {
|
fun FirAnnotationContainer.resolvedAnnotationClassIds(anchorElement: FirBasedSymbol<*>): List<ClassId> {
|
||||||
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
|
anchorElement.lazyResolveToPhase(FirResolvePhase.TYPES)
|
||||||
return annotations.mapNotNull { (it.annotationTypeRef.coneType as? ConeClassLikeType)?.lookupTag?.classId }
|
return annotations.mapNotNull { (it.annotationTypeRef.coneType as? ConeClassLikeType)?.lookupTag?.classId }
|
||||||
|
|||||||
Reference in New Issue
Block a user