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.
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat ITextRange

Clear() public méthode

public Clear ( ) : void
Résultat void

EndUpdate() public méthode

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

ErrorTagCollection() public méthode

public ErrorTagCollection ( IEditorTree editorTree ) : System
editorTree IEditorTree
Résultat System

ItemsInRange() public méthode

public ItemsInRange ( ITextRange range ) : IReadOnlyList
range ITextRange
Résultat IReadOnlyList

ReflectTextChange() public méthode

public ReflectTextChange ( int start, int oldLength, int newLength, bool trivialChange ) : void
start int
oldLength int
newLength int
trivialChange bool
Résultat void

RemoveTagsForNode() public méthode

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

ToArray() public méthode

public ToArray ( ) : EditorErrorTag[]
Résultat EditorErrorTag[]