Location

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

Specifies a position within a source code fragment.

Constructors

Link copied to clipboard
constructor(source: SourceLocation, text: TextLocation, filePath: FilePath)
constructor(source: SourceLocation, endSource: SourceLocation, text: TextLocation, filePath: FilePath)
constructor(source: SourceLocation, text: TextLocation, locationString: String, file: String)
constructor(source: SourceLocation, text: TextLocation, file: String, filePath: FilePath = FilePath.fromAbsolute(Path(file)))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val filePath: FilePath
Link copied to clipboard
Link copied to clipboard

Functions

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

Contract to format implementing object to a string representation.

Link copied to clipboard

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