[FIR] Consider @PlatformDependent annotation everywhere (including JS and Native)
^KT-57858 Fixed Remove FirEmptyOverridesBackwardCompatibilityHelper since it's not used anymore Remove overridesMemberWithPlatformDependent.kt test file since it becomes redundant
This commit is contained in:
committed by
Space Team
parent
1026cdf035
commit
3cd4f7c3aa
-13
@@ -1,13 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.fir.analysis
|
||||
|
||||
import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext
|
||||
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
|
||||
|
||||
object FirEmptyOverridesBackwardCompatibilityHelper : FirOverridesBackwardCompatibilityHelper() {
|
||||
override fun overrideCanBeOmitted(overriddenMemberSymbols: List<FirCallableSymbol<*>>, context: CheckerContext): Boolean = false
|
||||
}
|
||||
+2
-2
@@ -8,7 +8,7 @@ package org.jetbrains.kotlin.fir.session
|
||||
import org.jetbrains.annotations.TestOnly
|
||||
import org.jetbrains.kotlin.config.*
|
||||
import org.jetbrains.kotlin.fir.*
|
||||
import org.jetbrains.kotlin.fir.analysis.FirEmptyOverridesBackwardCompatibilityHelper
|
||||
import org.jetbrains.kotlin.fir.analysis.FirDefaultOverridesBackwardCompatibilityHelper
|
||||
import org.jetbrains.kotlin.fir.analysis.FirOverridesBackwardCompatibilityHelper
|
||||
import org.jetbrains.kotlin.fir.extensions.FirExtensionRegistrar
|
||||
import org.jetbrains.kotlin.fir.extensions.FirExtensionService
|
||||
@@ -137,6 +137,6 @@ object FirSessionFactoryHelper {
|
||||
register(FirVisibilityChecker::class, FirVisibilityChecker.Default)
|
||||
register(ConeCallConflictResolverFactory::class, DefaultCallConflictResolverFactory)
|
||||
register(FirPlatformClassMapper::class, FirPlatformClassMapper.Default)
|
||||
register(FirOverridesBackwardCompatibilityHelper::class, FirEmptyOverridesBackwardCompatibilityHelper)
|
||||
register(FirOverridesBackwardCompatibilityHelper::class, FirDefaultOverridesBackwardCompatibilityHelper)
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -353,6 +353,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("platformDependent.kt")
|
||||
public void testPlatformDependent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/platformDependent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyWithPropertyInInitializerAsParameter.kt")
|
||||
public void testPropertyWithPropertyInInitializerAsParameter() throws Exception {
|
||||
|
||||
+6
@@ -353,6 +353,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("platformDependent.kt")
|
||||
public void testPlatformDependent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/platformDependent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyWithPropertyInInitializerAsParameter.kt")
|
||||
public void testPropertyWithPropertyInInitializerAsParameter() throws Exception {
|
||||
|
||||
+6
@@ -353,6 +353,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/annotations/parameters.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("platformDependent.kt")
|
||||
public void testPlatformDependent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/platformDependent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyWithPropertyInInitializerAsParameter.kt")
|
||||
public void testPropertyWithPropertyInInitializerAsParameter() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user