Logo F# Compiler Guide

FSharp.Compiler.Text Namespace

Type/Module Description

ISourceText

Represents an input to the F# compiler

ISourceTextNew

Just like ISourceText, but with a checksum. Added as a separate type to avoid breaking changes.

Line

Functions related to converting between lines indexed at 0 and 1

Line0

Represents a line number when using zero-based line counting (used by Visual Studio)

NavigableTaggedText

An enhancement to TaggedText in the TaggedText layouts generated by FSharp.Compiler.Service

pos

Represents a position in a file

Position (Module)

Position (Type)

Represents a position in a file

Position01

Represents a position using zero-based line counting (used by Visual Studio)

Range (Module)

Range (Type)

Represents a range within a file

range

Represents a range within a file

Range01

Represents a range using zero-based line counting (used by Visual Studio)

RichText

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.

SourceText

Functions related to ISourceText objects

SourceTextNew

TaggedText (Module)

TaggedText (Type)

Represents text with a tag

TextTag

Represents the tag of some tagged text

Type something to start searching.