Suppress deprecation warnings related to scripting

This commit is contained in:
Alexander Udalov
2020-08-14 12:21:04 +02:00
parent 549ee84687
commit 1d15a5547d
14 changed files with 26 additions and 7 deletions
@@ -15,6 +15,7 @@ dependencies {
compileOnly(project(":compiler:backend.js"))
compileOnly(project(":core:descriptors.runtime"))
compileOnly(project(":compiler:ir.tree.impl"))
compileOnly(project(":kotlin-reflect-api"))
compile(project(":kotlin-scripting-common"))
compile(project(":kotlin-scripting-js"))
compile(project(":kotlin-util-klib"))
@@ -203,7 +203,9 @@ open class ReplCodeAnalyzerBase(
// TODO: merge with org.jetbrains.kotlin.resolve.repl.ReplState when switching to new REPL infrastructure everywhere
// TODO: review its place in the extracted state infrastructure (now the analyzer itself is a part of the state)
class ResettableAnalyzerState {
@Suppress("DEPRECATION")
private val successfulLines = ResettableSnippetsHistory<LineInfo.SuccessfulLine>()
private val submittedLines = hashMapOf<KtFile, LineInfo>()
fun resetToLine(lineId: ILineId): List<SourceCodeByReplLine> {