VisuallyOffsetTextMapping

class VisuallyOffsetTextMapping(val textMapping: TextMapping, val visualOffset: Int) : TextMapping

Moves the visual range of a TextMapping. This is useful when parsing a node that has multiple inline nodes inside, because each inline node's text is parsed as if it was the only inline node in the block.

Constructors

Link copied to clipboard
constructor(textMapping: TextMapping, visualOffset: Int)

Properties

Link copied to clipboard
open override val coveredSourceRange: TextRange?
Link copied to clipboard
val textMapping: TextMapping
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toSource(visualTextRange: TextRange): TextRange?
Link copied to clipboard
open override fun toVisual(sourceTextRange: TextRange): TextRange?
Link copied to clipboard
fun TextMapping.visuallyOffset(offset: Int): TextMapping