BlockContext

class BlockContext(val parser: MarkdownParser, input: Input, fragments: List<TreeFragment>, ranges: List<TextRange>) : PartialParse

Constructors

Link copied to clipboard
constructor(parser: MarkdownParser, input: Input, fragments: List<TreeFragment>, ranges: List<TextRange>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val depth: Int
Link copied to clipboard
Link copied to clipboard
open override val parsedPos: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var stoppedAt: Int?

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun addNode(block: Tree, from: Int)
fun addNode(type: Int, from: Int, to: Int? = null)
Link copied to clipboard
open override fun advance(): Tree?
Link copied to clipboard
fun elt(tree: Tree, at: Int): Element
fun elt(type: String, from: Int, to: Int, children: List<Element>? = null): Element
Link copied to clipboard
Link copied to clipboard
fun parentType(depth: Int = this.depth - 1): NodeType
Link copied to clipboard
Link copied to clipboard
fun startComposite(type: String, start: Int, value: Int = 0)
Link copied to clipboard
open override fun stopAt(pos: Int)