[IR][JS] Drop JsIrFileSerializer.skipExpects parameter
^KT-61136
This commit is contained in:
committed by
Space Team
parent
b37bb0be16
commit
5991364028
@@ -685,7 +685,6 @@ fun serializeModuleIntoKlib(
|
||||
moduleFragment.irBuiltins,
|
||||
expectDescriptorToSymbol,
|
||||
compatibilityMode,
|
||||
skipExpects = !configuration.expectActualLinker,
|
||||
normalizeAbsolutePaths = absolutePathNormalization,
|
||||
sourceBaseDirs = sourceBaseDirs,
|
||||
configuration.languageVersionSettings,
|
||||
|
||||
-2
@@ -28,7 +28,6 @@ class JsIrFileSerializer(
|
||||
declarationTable: DeclarationTable,
|
||||
expectDescriptorToSymbol: MutableMap<DeclarationDescriptor, IrSymbol>,
|
||||
compatibilityMode: CompatibilityMode,
|
||||
skipExpects: Boolean,
|
||||
languageVersionSettings: LanguageVersionSettings,
|
||||
bodiesOnlyForInlines: Boolean = false,
|
||||
normalizeAbsolutePaths: Boolean,
|
||||
@@ -40,7 +39,6 @@ class JsIrFileSerializer(
|
||||
compatibilityMode,
|
||||
languageVersionSettings,
|
||||
bodiesOnlyForInlines = bodiesOnlyForInlines,
|
||||
skipExpects = skipExpects,
|
||||
normalizeAbsolutePaths = normalizeAbsolutePaths,
|
||||
sourceBaseDirs = sourceBaseDirs
|
||||
) {
|
||||
|
||||
-2
@@ -21,7 +21,6 @@ class JsIrModuleSerializer(
|
||||
irBuiltIns: IrBuiltIns,
|
||||
private val expectDescriptorToSymbol: MutableMap<DeclarationDescriptor, IrSymbol>,
|
||||
compatibilityMode: CompatibilityMode,
|
||||
val skipExpects: Boolean,
|
||||
normalizeAbsolutePaths: Boolean,
|
||||
sourceBaseDirs: Collection<String>,
|
||||
private val languageVersionSettings: LanguageVersionSettings,
|
||||
@@ -39,7 +38,6 @@ class JsIrModuleSerializer(
|
||||
DeclarationTable(globalDeclarationTable),
|
||||
expectDescriptorToSymbol,
|
||||
compatibilityMode = compatibilityMode,
|
||||
skipExpects = skipExpects,
|
||||
normalizeAbsolutePaths = normalizeAbsolutePaths,
|
||||
sourceBaseDirs = sourceBaseDirs,
|
||||
languageVersionSettings = languageVersionSettings,
|
||||
|
||||
@@ -104,9 +104,7 @@ abstract class AbstractKlibIrTextTestCase : CodegenTestCase() {
|
||||
|
||||
val expected = irModule.dump(DumpIrTreeOptions(stableOrder = true, verboseErrorTypes = false))
|
||||
|
||||
val mppProject =
|
||||
myEnvironment.configuration.languageVersionSettings.getFeatureSupport(LanguageFeature.MultiPlatformProjects) == LanguageFeature.State.ENABLED
|
||||
val klibPath = serializeModule(irModule, bindingContext, stdlib, ignoreErrors, expectActualSymbols, !mppProject)
|
||||
val klibPath = serializeModule(irModule, bindingContext, stdlib, ignoreErrors, expectActualSymbols,)
|
||||
val libs = loadKlibFromPath(listOf(runtimeKlibPath, klibPath))
|
||||
val (stdlib2, klib) = libs
|
||||
val deserializedIrModule = deserializeModule(stdlib2, klib)
|
||||
@@ -144,14 +142,13 @@ abstract class AbstractKlibIrTextTestCase : CodegenTestCase() {
|
||||
return serializePackageFragment(moduleDescriptor, memberScope, ktFile.packageFqName)
|
||||
}
|
||||
|
||||
protected fun serializeModule(irModuleFragment: IrModuleFragment, bindingContext: BindingContext, stdlib: KotlinLibrary, containsErrorCode: Boolean, expectActualSymbols: MutableMap<DeclarationDescriptor, IrSymbol>, skipExpect: Boolean): String {
|
||||
protected fun serializeModule(irModuleFragment: IrModuleFragment, bindingContext: BindingContext, stdlib: KotlinLibrary, containsErrorCode: Boolean, expectActualSymbols: MutableMap<DeclarationDescriptor, IrSymbol>): String {
|
||||
val ktFiles = myFiles.psiFiles
|
||||
val serializedIr = JsIrModuleSerializer(
|
||||
IrMessageLogger.None,
|
||||
irModuleFragment.irBuiltins,
|
||||
expectActualSymbols,
|
||||
CompatibilityMode.CURRENT,
|
||||
skipExpect,
|
||||
false,
|
||||
emptyList(),
|
||||
myEnvironment.configuration.languageVersionSettings,
|
||||
|
||||
@@ -531,7 +531,6 @@ class GenerateIrRuntime {
|
||||
module.irBuiltins,
|
||||
mutableMapOf(),
|
||||
CompatibilityMode.CURRENT,
|
||||
skipExpects = true,
|
||||
normalizeAbsolutePaths = false,
|
||||
emptyList(),
|
||||
configuration.languageVersionSettings,
|
||||
|
||||
Reference in New Issue
Block a user