script.runtime 1.1.4: Remove copy of ScriptContents class
This class is not new(experimental) API is not supposed to be moved
This commit is contained in:
+1
@@ -19,6 +19,7 @@
|
||||
package kotlin.script.experimental.dependencies
|
||||
|
||||
import kotlin.script.dependencies.Environment
|
||||
import kotlin.script.dependencies.ScriptContents
|
||||
|
||||
interface AsyncDependenciesResolver : DependenciesResolver {
|
||||
suspend fun resolveAsync(
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
package kotlin.script.experimental.dependencies
|
||||
|
||||
import java.io.File
|
||||
import kotlin.script.dependencies.Environment
|
||||
import kotlin.script.dependencies.ScriptContents
|
||||
import kotlin.script.dependencies.ScriptDependenciesResolver
|
||||
import kotlin.script.experimental.dependencies.DependenciesResolver.ResolveResult
|
||||
|
||||
@@ -47,14 +47,6 @@ interface DependenciesResolver : ScriptDependenciesResolver {
|
||||
}
|
||||
}
|
||||
|
||||
interface ScriptContents {
|
||||
val file: File?
|
||||
val annotations: Iterable<Annotation>
|
||||
val text: CharSequence?
|
||||
|
||||
data class Position(val line: Int, val col: Int)
|
||||
}
|
||||
|
||||
data class ScriptReport(val message: String, val severity: Severity = Severity.ERROR, val position: Position? = null) {
|
||||
data class Position(val startLine: Int, val startColumn: Int, val endLine: Int? = null, val endColumn: Int? = null)
|
||||
enum class Severity { ERROR, WARNING, INFO, DEBUG }
|
||||
|
||||
Reference in New Issue
Block a user