Table of Contents

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 string

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

File name containing source code.

options FormatCodeOptions

Formatting options.

Returns

IEnumerable<TextChange>

The set of TextChange representing list of the document changes.