Method GetFormattingEditsForDocument
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v9.dll
GetFormattingEditsForDocument(string)
Gets list of changes between specified document and previous version of the same document.
public IEnumerable<TextChange> GetFormattingEditsForDocument(string fileName)
Parameters
fileName
stringFile name containing source code.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.
GetFormattingEditsForDocument(string, FormatCodeOptions)
Gets list of changes between specified document and previous version of the same document.
public IEnumerable<TextChange> GetFormattingEditsForDocument(string fileName, FormatCodeOptions options)
Parameters
fileName
stringFile name containing source code.
options
FormatCodeOptionsFormatting options.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.