[NoArg] Add implementation of plugin for FIR
This commit is contained in:
committed by
teamcity
parent
8acb8aa043
commit
5d0655247f
@@ -14,5 +14,5 @@ fun box(): String {
|
||||
val ms = Anno::class.java.declaredMethods
|
||||
|
||||
return (ms.single { it.name == "o" }.annotations.single() as Name).value +
|
||||
(ms.single { it.name == "k" }.annotations.single() as Name).value
|
||||
(ms.single { it.name == "k" }.annotations.single() as Name).value
|
||||
}
|
||||
|
||||
+9
-5
@@ -51,6 +51,14 @@ abstract class AbstractFirDiagnosticsWithLightTreeTest : AbstractFirDiagnosticTe
|
||||
}
|
||||
}
|
||||
|
||||
fun TestConfigurationBuilder.configurationForClassicAndFirTestsAlongside() {
|
||||
useAfterAnalysisCheckers(
|
||||
::FirIdenticalChecker,
|
||||
::FirFailingTestSuppressor,
|
||||
)
|
||||
useMetaTestConfigurators(::FirOldFrontendMetaConfigurator)
|
||||
}
|
||||
|
||||
// `baseDir` is used in Kotlin plugin from IJ infra
|
||||
fun TestConfigurationBuilder.baseFirDiagnosticTestConfiguration(
|
||||
baseDir: String = ".",
|
||||
@@ -89,11 +97,7 @@ fun TestConfigurationBuilder.baseFirDiagnosticTestConfiguration(
|
||||
useMetaInfoProcessors(::PsiLightTreeMetaInfoProcessor)
|
||||
|
||||
forTestsMatching("compiler/testData/diagnostics/*") {
|
||||
useAfterAnalysisCheckers(
|
||||
::FirIdenticalChecker,
|
||||
::FirFailingTestSuppressor,
|
||||
)
|
||||
useMetaTestConfigurators(::FirOldFrontendMetaConfigurator)
|
||||
configurationForClassicAndFirTestsAlongside()
|
||||
}
|
||||
|
||||
forTestsMatching("compiler/fir/analysis-tests/testData/*") {
|
||||
|
||||
Reference in New Issue
Block a user