Location

data class Location @JvmOverloads constructor(    val source: SourceLocation,     val text: TextLocation,     val file: String,     val filePath: FilePath = FilePath.fromAbsolute(Paths.get(file))) : Compactable

Specifies a position within a source code fragment.

Constructors

Link copied to clipboard
fun Location(    source: SourceLocation,     text: TextLocation,     filePath: FilePath)
Link copied to clipboard
fun Location(    source: SourceLocation,     endSource: SourceLocation,     text: TextLocation,     filePath: FilePath)
Link copied to clipboard
fun Location(    source: SourceLocation,     text: TextLocation,     locationString: String,     file: String)
Link copied to clipboard
fun Location(    source: SourceLocation,     text: TextLocation,     file: String,     filePath: FilePath = FilePath.fromAbsolute(Paths.get(file)))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun compact(): String

Contract to format implementing object to a string representation.

Link copied to clipboard
open fun compactWithSignature(): String

Same as compact except the content should contain a substring which represents this exact findings via a custom identifier.

Properties

Link copied to clipboard
var endSource: SourceLocation
Link copied to clipboard
val file: String
Link copied to clipboard
val filePath: FilePath
Link copied to clipboard
val source: SourceLocation
Link copied to clipboard
val text: TextLocation