Header menu logo FSharp.Formatting

FSharp.Formatting.CodeFormat Namespace

Functionality relating to formatting F# scripts and code snippets

Type/Module Description

CodeFormat

Exposes functionality of the F# code formatter with a nice interface

CodeFormatter

Uses agent to handle formatting requests

ErrorKind

Represents a kind of error reported from the F# compiler (warning or error)

FormattedContent

Represents formatted snippets

FormattedSnippet

Represents an individual formatted snippet with title as key

Line

Represents a line of source code as a list of TokenSpan values. This is a single case discriminated union with Line constructor.

Snippet

An F# snippet consists of a snippet title and a list of lines

SourceError

Error reported from the F# compiler consists of location (start and end), error kind and the message (wrapped in a single case discriminated union with constructor SourceError)

TokenKind

Classifies tokens reported by the FCS

TokenSpan

A token in a parsed F# code snippet. Aside from standard tokens reported from the compiler (Token), this also includes Error (wrapping the underlined tokens), Omitted for the special [omit:...] tags and Output for the special [output:...] tag

TokenSpans

A type alias representing a list of TokenSpan values

ToolTipSpan

A tool tip span can be emphasized text, plain text Literal or a line brak

ToolTipSpans

A tool tip consists of a list of items reported from the compiler

Type something to start searching.