Header menu logo fantomas

CodeFormatterImpl Module

Functions and values

Function or value Description

CodeFormatterImpl.formatAST ast sourceText config cursor

Full Usage: CodeFormatterImpl.formatAST ast sourceText config cursor

Parameters:
Returns: FormatResult
ast : ParsedInput
sourceText : ISourceText option
config : FormatConfig
cursor : pos option
Returns: FormatResult

CodeFormatterImpl.formatDocument config isSignature source cursor

Full Usage: CodeFormatterImpl.formatDocument config isSignature source cursor

Parameters:
Returns: Async<FormatResult>
config : FormatConfig
isSignature : bool
source : ISourceText
cursor : pos option
Returns: Async<FormatResult>

CodeFormatterImpl.getSourceText source

Full Usage: CodeFormatterImpl.getSourceText source

Parameters:
    source : string

Returns: ISourceText
source : string
Returns: ISourceText

CodeFormatterImpl.parse isSignature source

Full Usage: CodeFormatterImpl.parse isSignature source

Parameters:
Returns: Async<(ParsedInput * DefineCombination) array>
isSignature : bool
source : ISourceText
Returns: Async<(ParsedInput * DefineCombination) array>

Type something to start searching.