[FIR] Minor: Unify all create*Session functions across all factories

Rename: createJsLibrarySession -> createLibrarySession

Rename: createJsModuleBasedSession -> createModuleBasedSession
This commit is contained in:
Ivan Kochurkin
2023-02-02 14:51:33 +01:00
committed by Space Team
parent a9bac2f18b
commit 199b0e8cbe
3 changed files with 7 additions and 7 deletions
@@ -510,7 +510,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
val logger = configuration.resolverLogger
val resolvedLibraries = jsResolveLibraries(libraries + friendLibraries, logger).getFullResolvedList()
FirJsSessionFactory.createJsLibrarySession(
FirJsSessionFactory.createLibrarySession(
escapedMainModuleName,
resolvedLibraries,
sessionProvider,
@@ -549,7 +549,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
}
val commonSession = runIf(isMppEnabled) {
FirJsSessionFactory.createJsModuleBasedSession(
FirJsSessionFactory.createModuleBasedSession(
commonModuleData!!,
sessionProvider,
extensionRegistrars,
@@ -559,7 +559,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
init = sessionConfigurator,
)
}
val platformSession = FirJsSessionFactory.createJsModuleBasedSession(
val platformSession = FirJsSessionFactory.createModuleBasedSession(
mainModuleData,
sessionProvider,
extensionRegistrars,