[JS IR] fix warnings
This commit is contained in:
committed by
teamcityserver
parent
c2f7ed2fff
commit
283e37c741
@@ -28,6 +28,7 @@ import org.jetbrains.kotlin.name.FqName
|
||||
import org.jetbrains.kotlin.serialization.js.ModuleKind
|
||||
import java.io.ByteArrayInputStream
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@OptIn(ObsoleteDescriptorBasedAPI::class)
|
||||
fun compileWithIC(
|
||||
module: IrModuleFragment,
|
||||
@@ -81,8 +82,8 @@ fun compileWithIC(
|
||||
deserializer.postProcess()
|
||||
symbolTable.noUnboundLeft("Unbound symbols at the end of linker")
|
||||
|
||||
allModules.forEach { module ->
|
||||
moveBodilessDeclarationsToSeparatePlace(context, module)
|
||||
allModules.forEach {
|
||||
moveBodilessDeclarationsToSeparatePlace(context, it)
|
||||
}
|
||||
|
||||
generateJsTests(context, mainModule)
|
||||
|
||||
+1
-1
@@ -474,7 +474,7 @@ private inline fun <T : JsNode> T.addSourceInfoIfNeed(node: IrElement, context:
|
||||
|
||||
if (node.startOffset == UNDEFINED_OFFSET || node.endOffset == UNDEFINED_OFFSET) return
|
||||
|
||||
val fileEntry = context.currentFile?.fileEntry ?: return
|
||||
val fileEntry = context.currentFile.fileEntry
|
||||
|
||||
val path = fileEntry.name
|
||||
val startLine = fileEntry.getLineNumber(node.startOffset)
|
||||
|
||||
@@ -581,10 +581,10 @@ abstract class BasicIrBoxTest(
|
||||
esModules = false,
|
||||
)
|
||||
|
||||
val cacheProvider = icCache.cacheProvider()
|
||||
val newBinaryAsts = dirtyFiles.associateWith { cacheProvider.binaryAst(it) }
|
||||
|
||||
// TODO: enable asserts when binary stability is achieved
|
||||
// val cacheProvider = icCache.cacheProvider()
|
||||
// val newBinaryAsts = dirtyFiles.associateWith { cacheProvider.binaryAst(it) }
|
||||
//
|
||||
// for (file in dirtyFiles) {
|
||||
// val oldBinaryAst = oldBinaryAsts[file]
|
||||
// val newBinaryAst = newBinaryAsts[file]
|
||||
|
||||
Reference in New Issue
Block a user