C# Class Microsoft.R.Editor.Validation.Tagger.ErrorTagCollection

Represents collection of HTML validation errors and tasks. Tag collection is a primary source for validation squiggles in the editor as well as source of the corresponding messages for the application task list. Collection is thread safe.
Exibir arquivo Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
BeginUpdate ( ) : ITextRange

Signals that collection is about to be updated. Must be called before any updates are made to the collection so collection can calculated span of changes in the text buffer.

Clear ( ) : void
EndUpdate ( bool modified ) : void

Signals that collection update has been completed.

ErrorTagCollection ( IEditorTree editorTree ) : System
ItemsInRange ( ITextRange range ) : IReadOnlyList
ReflectTextChange ( int start, int oldLength, int newLength, bool trivialChange ) : void
RemoveTagsForNode ( IAstNode node ) : ITextRange

Removes all tags associated with a given node

ToArray ( ) : EditorErrorTag[]

Private Methods

Method Description
Add ( EditorErrorTag tag ) : void
OnNewTree ( object sender, EventArgs e ) : void
OnNodesRemoved ( object sender, TreeNodesRemovedEventArgs e ) : void
OnTreeClosing ( object sender, EventArgs e ) : void
OnUpdateCompleted ( object sender, TreeUpdatedEventArgs e ) : void
ProcessPendingNodeRemoval ( ) : void
StoreRemovedNodes ( IAstNode node ) : void

Method Details

BeginUpdate() public method

Signals that collection is about to be updated. Must be called before any updates are made to the collection so collection can calculated span of changes in the text buffer.
public BeginUpdate ( ) : ITextRange
return ITextRange

Clear() public method

public Clear ( ) : void
return void

EndUpdate() public method

Signals that collection update has been completed.
public EndUpdate ( bool modified ) : void
modified bool True if collection was indeed modified since BeginUpdate was called
return void

ErrorTagCollection() public method

public ErrorTagCollection ( IEditorTree editorTree ) : System
editorTree IEditorTree
return System

ItemsInRange() public method

public ItemsInRange ( ITextRange range ) : IReadOnlyList
range ITextRange
return IReadOnlyList

ReflectTextChange() public method

public ReflectTextChange ( int start, int oldLength, int newLength, bool trivialChange ) : void
start int
oldLength int
newLength int
trivialChange bool
return void

RemoveTagsForNode() public method

Removes all tags associated with a given node
public RemoveTagsForNode ( IAstNode node ) : ITextRange
node IAstNode Node in the AST
return ITextRange

ToArray() public method

public ToArray ( ) : EditorErrorTag[]
return EditorErrorTag[]