Method GetFormattingEditsForRange
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v10.dll
GetFormattingEditsForRange(string, int, int)
Gets list of changes between specified document and previous version of the same document.
public IEnumerable<TextChange> GetFormattingEditsForRange(string fileName, int start, int end)
Parameters
fileNamestringFile name contains document.
startintStart position of the range within the text.
endintEnd position of the range within the text.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.
GetFormattingEditsForRange(string, int, int, FormatCodeOptions)
Gets list of changes between specified document and previous version of the same document.
public IEnumerable<TextChange> GetFormattingEditsForRange(string fileName, int start, int end, FormatCodeOptions options)
Parameters
fileNamestringFile name contains document.
startintStart position of the range within the text.
endintEnd position of the range within the text.
optionsFormatCodeOptionsFormatting options.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.