TextMapping

interface TextMapping

Maps ranges of rendered text to ranges of source code and back.

Inheritors

Properties

Link copied to clipboard
abstract val coveredSourceRange: TextRange?

Range of the source code covered by this mapping.

Functions

Link copied to clipboard
operator fun TextMapping.plus(other: TextMapping): TextMapping
Link copied to clipboard
abstract fun toSource(visualTextRange: TextRange): TextRange?

Compute the source text range corresponding to the rendered text.

Link copied to clipboard
abstract fun toVisual(sourceTextRange: TextRange): TextRange?

Compute the rendered text range corresponding to the source text range.