CodeFormatter Type
Static members
Static member | Description |
Full Usage:
CodeFormatter.FormatASTAsync(ast, source)
Parameters:
ParsedInput
source : string
Returns: Async<string>
|
|
Full Usage:
CodeFormatter.FormatASTAsync(ast, config)
Parameters:
ParsedInput
config : FormatConfig
Returns: Async<string>
|
|
|
|
Full Usage:
CodeFormatter.FormatDocumentAsync(isSignature, source, config, cursor)
Parameters:
bool
-
Determines whether the F# parser will process the source as signature file.
source : string
-
F# source code
config : FormatConfig
-
Fantomas configuration
cursor : pos
-
The location of a cursor, zero-based.
Returns: Async<FormatResult>
|
|
Full Usage:
CodeFormatter.FormatDocumentAsync(isSignature, source, config)
Parameters:
bool
-
Determines whether the F# parser will process the source as signature file.
source : string
-
F# source code
config : FormatConfig
-
Fantomas configuration
Returns: Async<FormatResult>
|
|
Full Usage:
CodeFormatter.FormatDocumentAsync(isSignature, source)
Parameters:
bool
-
Determines whether the F# parser will process the source as signature file.
source : string
-
F# source code
Returns: Async<FormatResult>
|
|
Full Usage:
CodeFormatter.FormatOakAsync(oak, config)
Parameters:
Oak
config : FormatConfig
Returns: Async<string>
|
|
|
|
Full Usage:
CodeFormatter.FormatSelectionAsync(isSignature, source, selection, config)
Parameters:
bool
source : string
selection : range
config : FormatConfig
Returns: Async<string * range>
|
|
Full Usage:
CodeFormatter.GetVersion()
Returns: string
|
|
Full Usage:
CodeFormatter.IsValidFSharpCodeAsync(isSignature, source)
Parameters:
bool
source : string
Returns: Async<bool>
|
|
Full Usage:
CodeFormatter.MakePosition(line, column)
Parameters:
int
column : int
Returns: pos
|
|
Full Usage:
CodeFormatter.MakeRange(fileName, startLine, startCol, endLine, endCol)
Parameters:
string
startLine : int
startCol : int
endLine : int
endCol : int
Returns: range
|
|
Full Usage:
CodeFormatter.ParseAsync(isSignature, source)
Parameters:
bool
source : string
Returns: Async<(ParsedInput * string list) array>
|
|
|
|
Full Usage:
CodeFormatter.TransformAST(ast, source)
Parameters:
ParsedInput
source : string
Returns: Oak
|
|
|