[JS IR] Add to IR keep possibility similar to legacy-dce one
It helps to: - keep declarations even if they are not reachable and not exported - not minify names of not exported declarations Compiler argument: -Xir-keep=A,B Can be used for top-level declarations or for member ^KT-54118 fixed
This commit is contained in:
+2
-1
@@ -92,7 +92,8 @@ class JsCoreScriptingCompiler(
|
||||
psi2irContext.irBuiltIns,
|
||||
psi2irContext.symbolTable,
|
||||
irModuleFragment,
|
||||
emptySet(),
|
||||
additionalExportedDeclarationNames = emptySet(),
|
||||
keep = emptySet(),
|
||||
environment.configuration,
|
||||
true
|
||||
)
|
||||
|
||||
+2
-1
@@ -62,7 +62,8 @@ class JsScriptDependencyCompiler(
|
||||
irBuiltIns,
|
||||
symbolTable,
|
||||
moduleFragment,
|
||||
emptySet(),
|
||||
additionalExportedDeclarationNames = emptySet(),
|
||||
keep = emptySet(),
|
||||
configuration,
|
||||
true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user