Mark

class Mark(val name: String, val index: Int, val line: Int, val column: Int, val buffer: IntArray, val pointer: Int)

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

buffer
  • the data

pointer
  • the position of the mark from the beginning of the data

Constructors

Link copied to clipboard
constructor(name: String, index: Int, line: Int, column: Int, buffer: IntArray, pointer: Int)

Properties

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

Functions

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

Create readable YAML with indent 4 and (by default) a maxLength of 75 characters.

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