[FIR] CustomAnnotationTypeAttribute: support type aliases
^KTIJ-23547 ^KTIJ-24141
This commit is contained in:
committed by
Space Team
parent
0e2967e520
commit
73cdaf5c3c
+4
-1
@@ -81,6 +81,9 @@ private fun ConeKotlinType.customAnnotationsWithLazyResolve(phase: FirResolvePha
|
||||
val custom = attributes.custom ?: return emptyList()
|
||||
val annotations = custom.annotations.ifEmpty { return emptyList() }
|
||||
|
||||
custom.containerSymbol?.lazyResolveToPhase(phase)
|
||||
for (containerSymbol in custom.containerSymbols) {
|
||||
containerSymbol.lazyResolveToPhase(phase)
|
||||
}
|
||||
|
||||
return annotations
|
||||
}
|
||||
|
||||
+6
@@ -106,6 +106,12 @@ public class FirIdeNormalAnalysisSourceModuleSingleSymbolByPsiGenerated extends
|
||||
runTest("analysis/analysis-api/testData/symbols/singleSymbolByPsi/setterWithAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAnnotationsWithTypeAlias.kt")
|
||||
public void testTypeAnnotationsWithTypeAlias() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/singleSymbolByPsi/typeAnnotationsWithTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("analysis/analysis-api/testData/symbols/singleSymbolByPsi/contracts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user