Logo fantomas

RichText Type

Represents text made of tagged parts, e.g. a diagnostic message in which types, identifiers and punctuation are classified, so that tooling is able to render them with colors. Text that carries no classification is represented as a single part tagged TextTag.Text, so that a plain string is always representable and Text is always equal to the original string. Two rich texts are equal when they read the same. Classification does not take part in equality, since the places that compare texts - such as deciding whether two types can be told apart in a message - are asking about what reaches the reader.

Instance members

Instance member Description

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool

Gets whether the text has no parts

Returns: bool

this.Parts

Full Usage: this.Parts

Returns: TaggedText[]

Gets the tagged parts of the text

Returns: TaggedText[]

this.Text

Full Usage: this.Text

Returns: string

Gets the text of all parts concatenated

Returns: string

Type something to start searching.