[Analysis API] add diagnostic test for FP expose diagnostic from library
^KT-64468 ^KT-62891
This commit is contained in:
committed by
Space Team
parent
282cd82539
commit
1ec994cd0d
+6
@@ -82,6 +82,12 @@ public class Fe10IdeNormalAnalysisSourceModuleCollectDiagnosticsTestGenerated ex
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/incompleteFor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideProtectedClassReturnFromLibrary.kt")
|
||||
public void testOverrideProtectedClassReturnFromLibrary() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/overrideProtectedClassReturnFromLibrary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolutionErrors.kt")
|
||||
public void testResolutionErrors() throws Exception {
|
||||
|
||||
+6
@@ -82,6 +82,12 @@ public class FirIdeNormalAnalysisSourceModuleCollectDiagnosticsTestGenerated ext
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/incompleteFor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideProtectedClassReturnFromLibrary.kt")
|
||||
public void testOverrideProtectedClassReturnFromLibrary() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/overrideProtectedClassReturnFromLibrary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolutionErrors.kt")
|
||||
public void testResolutionErrors() throws Exception {
|
||||
|
||||
+6
@@ -82,6 +82,12 @@ public class FirStandaloneNormalAnalysisSourceModuleCollectDiagnosticsTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/incompleteFor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overrideProtectedClassReturnFromLibrary.kt")
|
||||
public void testOverrideProtectedClassReturnFromLibrary() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/overrideProtectedClassReturnFromLibrary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("resolutionErrors.kt")
|
||||
public void testResolutionErrors() throws Exception {
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// IGNORE_FE10
|
||||
// KT-64503
|
||||
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: TestExposeTypeLib.kt
|
||||
abstract class TestExposeTypeLib {
|
||||
protected abstract fun returnProtectedClass(): ProtectedClass?
|
||||
protected class ProtectedClass
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
class Usage : TestExposeTypeLib() {
|
||||
override fun returnProtectedClass(): ProtectedClass? = null
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNamedFunction at (15,5-64)
|
||||
EXPOSED_FUNCTION_RETURN_TYPE text ranges: [(103,123)]
|
||||
PSI: KtNamedFunction at (15,5-64)
|
||||
Reference in New Issue
Block a user