Table of Contents

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 string

File name contains document.

start int

Start position of the range within the text.

end int

End 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 string

File name contains document.

start int

Start position of the range within the text.

end int

End position of the range within the text.

options FormatCodeOptions

Formatting options.

Returns

IEnumerable<TextChange>

The set of TextChange representing list of the document changes.