SourceCursor

laika.parse.SourceCursor
See theSourceCursor companion trait
object SourceCursor

Companion for creating new SourceCursor instances. This type of constructor is only meant to be used for creating a root cursor for the input holding the whole document (e.g. the entire markup document or the full template).

For creating a cursor for a fragment of the input, either BlockSource or LineSource must be used to preserve position tracking in relation to the root input.

Attributes

Companion
trait
Source
SourceCursor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Generated extends SourceFragment

Represents a generated source, where an AST node has been created programmatically and cannot be traced back to the corresponding input source.

Represents a generated source, where an AST node has been created programmatically and cannot be traced back to the corresponding input source.

Attributes

Source
SourceCursor.scala
Supertypes
trait SourceCursor
class Object
trait Matchable
class Any
Self type
Generated.type

Value members

Concrete methods

def apply(input: String): SourceCursor

Builds a new instance for the specified input string.

Builds a new instance for the specified input string.

Attributes

Source
SourceCursor.scala
def apply(input: String, path: Path): SourceCursor

Builds a new instance for the specified input string and source path.

Builds a new instance for the specified input string and source path.

Attributes

Source
SourceCursor.scala