CodeFormatter Module
Uses agent to handle formatting requests
Functions and values
Function or value |
Description
|
Full Usage:
ParseAndCheckSource (file, source, options, defines, onError)
Parameters:
string
source : string
options : string option
defines : string option
onError : string -> unit
Returns: Snippet array * SourceError[]
|
Parse, check and annotate the source code specified by 'source', assuming that it is located in a specified 'file'. Optional arguments can be used to give compiler command line options and preprocessor definitions
|
Full Usage:
categoryToTokenKind _arg1
Parameters:
SemanticClassificationType
Returns: TokenKind option
|
|
|
|
Full Usage:
processDoubleBackticks body
Parameters:
string
Returns: string
|
|
Full Usage:
processSnippet checkResults categorizedRanges lines snippet
Parameters:
FSharpCheckFileResults
categorizedRanges : Map<int, 'a>
lines : string array
snippet : Snippet
Returns: Line list
|
Process snippet
|
Full Usage:
processSnippetLine checkResults semanticRanges lines (line, lineTokens)
Parameters:
FSharpCheckFileResults
semanticRanges : SemanticClassificationItem array
lines : string array
line : int
lineTokens : SnippetLine
Returns: Line
|
|
Full Usage:
processSourceCode (filePath, source, options, defines, onError)
Parameters:
string
source : string
options : string option
defines : string option
onError : string -> unit
Returns: Async<Snippet array * SourceError[]>
|
|