Move package org.jetbrains.kotlin.incremental.js to 'js.config'

This allows to replace dependency on 'js.frontend' with 'js.config', in
'kotlin-build-common' and 'daemon-common'. Also simplify some other
dependencies.
This commit is contained in:
Alexander Udalov
2020-03-15 13:02:31 +01:00
committed by Alexander Udalov
parent 4dcd0d1cb6
commit fe5104b865
7 changed files with 13 additions and 27 deletions
@@ -16,7 +16,6 @@
package org.jetbrains.kotlin.incremental.js
import org.jetbrains.kotlin.name.FqName
import java.io.File
// byte arrays are used to simplify passing to different classloaders
@@ -17,7 +17,6 @@
package org.jetbrains.kotlin.incremental.js
import java.io.File
import java.io.Serializable
import java.security.MessageDigest
interface IncrementalResultsConsumer {
@@ -59,8 +58,6 @@ interface IncrementalNextRoundChecker {
fun shouldGoToNextRound(): Boolean
}
class JsInlineFunctionHash(val sourceFilePath: String, val fqName: String, val inlineFunctionMd5Hash: Long): Serializable
class FunctionWithSourceInfo(val expression: Any, val line: Int, val column: Int) {
val md5: Long
get() = "($line:$column)$expression".toByteArray().md5()
@@ -0,0 +1,10 @@
/*
* Copyright 2010-2020 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.incremental.js
import java.io.Serializable
class JsInlineFunctionHash(val sourceFilePath: String, val fqName: String, val inlineFunctionMd5Hash: Long) : Serializable