Method GetFormattingEditsForRange
- Namespace
- Alternet.Common.TypeScript.Compiler
- Assembly
- Alternet.Common.TypeScript.v9.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
fileName
stringFile name contains document.
start
intStart position of the range within the text.
end
intEnd 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
fileName
stringFile name contains document.
start
intStart position of the range within the text.
end
intEnd position of the range within the text.
options
FormatCodeOptionsFormatting options.
Returns
- IEnumerable<TextChange>
The set of TextChange representing list of the document changes.