C# Class Microsoft.Languages.Editor.Text.TextUtility

Exibir arquivo Open project: Microsoft/RTVS

Public Methods

Method Description
CombineChanges ( TextContentChangedEventArgs e, int &start, int &oldLength, int &newLength ) : void

Combines multiple changes into one larger change.

ConvertToRelative ( this changeInfo ) : IReadOnlyList

Converts list of text changes in a text buffer to a collection of changes that are relative one to another.

Method Details

CombineChanges() public static method

Combines multiple changes into one larger change.
public static CombineChanges ( TextContentChangedEventArgs e, int &start, int &oldLength, int &newLength ) : void
e TextContentChangedEventArgs Text buffer change event argument
start int Combined span start
oldLength int Length of the change in the original buffer state
newLength int Length of the change in the new buffer state
return void

ConvertToRelative() public static method

Converts list of text changes in a text buffer to a collection of changes that are relative one to another.
public static ConvertToRelative ( this changeInfo ) : IReadOnlyList
changeInfo this
return IReadOnlyList