MappedText

data class MappedText(val text: AnnotatedString, val textMapping: TextMapping, val inlineContent: Map<String, InlineTextContent> = emptyMap())

Text, which carries information about what part of source text it came from.

Constructors

Link copied to clipboard
constructor(text: String, textMapping: TextMapping)
constructor(text: AnnotatedString, textMapping: TextMapping, inlineContent: Map<String, InlineTextContent> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val inlineContent: Map<String, InlineTextContent>
Link copied to clipboard
val text: AnnotatedString
Link copied to clipboard
val textMapping: TextMapping

Functions

Link copied to clipboard
fun annotatedWith(tag: String, annotation: String): MappedText
Link copied to clipboard
operator fun plus(other: MappedText): MappedText