Mark

class Mark @JvmOverloads constructor(val name: String, val index: Int, val line: Int, val column: Int, val codepoints: List<Int>, val pointer: Int = 0)(source)

Location of a problem in the YAML document. Its only use is producing nice error messages. Parser does not use it for any other purposes.

Parameters

name

the name of the data stream, to be used as identifier

index

the index from the beginning of the stream

line

line of the mark from beginning of the stream

column

column of the mark from beginning of the line

codepoints

the data

pointer

the index of the character in codepoints that will be marked

Constructors

Link copied to clipboard
constructor(name: String, index: Int, line: Int, column: Int, codepoints: List<Int>, pointer: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val column: Int
Link copied to clipboard
val index: Int
Link copied to clipboard
val line: Int
Link copied to clipboard
Link copied to clipboard
val pointer: Int = 0

Functions

Link copied to clipboard
fun createSnippet(indentSize: Int = 4, maxLength: Int = 75): String

Create readable YAML snippet of codepoints, with a caret ^ pointing at pointer.

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