Property | Type | Description | |
---|---|---|---|
ApplyChangesFromQueue | List |
||
Dispose | void | ||
FireOnNodesRemoved | void | ||
FireOnPositionsOnlyChanged | void | ||
FireOnUpdateBegin | void | ||
FireOnUpdateCompleted | void | ||
FireOnUpdatesPending | void | ||
FirePostUpdateEvents | void | ||
GetAstRootUnsafe | |||
InvalidateInRange | bool | ||
NotifyTextChange | void | ||
OnTextBufferChanged | void | ||
ProcessChanges | void | ||
TakeThreadOwnerShip | void | ||
ToString | string |
Method | Description | |
---|---|---|
AcquireReadLock ( System.Guid treeUserId ) : |
||
AcquireWriteLock ( ) : bool | ||
Build ( ) : void |
Builds initial AST. Subsequent updates should be coming from a background thread.
|
|
Dispose ( ) : void | ||
EditorTree ( ITextBuffer textBuffer, ICoreShell shell, IExpressionTermFilter filter = null ) : System |
Creates document tree on a given text buffer.
|
|
EnsureTreeReady ( ) : void |
Ensures tree is up to date, matches current text buffer snapshot and all changes since the last update were processed. Blocks until all changes have been processed. Does not pump messages.
|
|
GetCommentBlockContainingRange ( ITextRange range ) : ITextRange |
Determines if a given range is inside a comment and returns range of the comment block.
|
|
GetCommentBlockFromPosition ( int position ) : ITextRange |
Determines if a given position is inside a comment and returns range of the comment block.
|
|
GetPositionElement ( int position, IAstNode &node ) : PositionType |
Determines position type and enclosing element node for a given position in the document text.
|
|
Invalidate ( ) : void |
Removes all elements from the tree
|
|
InvokeWhenReady ( Action |
Provides a way to automatically invoke particular action once when tree becomes ready again. Typically used in asynchronous completion and signature help scenarios.
|
|
IsRangeInComment ( ITextRange range ) : bool |
Determines if a given range is inside a comment.
|
|
IsRangeInComment ( int position ) : bool |
Determines if a given position is inside a comment of any kind. Comment may be plain HTML comment or artifact type comment like <%--...--%> in ASP.NET or @* ... *@ in Razor.
|
|
ReleaseReadLock ( System.Guid treeUserId ) : bool | ||
ReleaseWriteLock ( ) : bool |
Method | Description | |
---|---|---|
ApplyChangesFromQueue ( Queue |
||
Dispose ( bool disposing ) : void | ||
FireOnNodesRemoved ( IReadOnlyCollection |
Fires 'nodes removed' event on the main thread context
|
|
FireOnPositionsOnlyChanged ( ) : void |
Fires 'positions changed starting inside this element' event on the main thread context
|
|
FireOnUpdateBegin ( ) : void |
Fires 'update begin' event on the main thread context
|
|
FireOnUpdateCompleted ( TreeUpdateType updateType ) : void |
Fires 'update end' event on the main thread context
|
|
FireOnUpdatesPending ( IReadOnlyCollection |
Fires 'tree updates pending' event on the main thread context
|
|
FirePostUpdateEvents ( List |
||
GetAstRootUnsafe ( ) : |
||
InvalidateInRange ( ITextRange range ) : bool |
Removes nodes from the tree collection if node range is partially or entirely within the deleted region. This is needed since parsing is asynchronous and without node removal intellisense and syntax checker may end up processing nodes that are out of date. Where possible stops at the nearest scope level so scope nodes may still be used in smart indenter.
|
|
NotifyTextChange ( int start, int oldLength, int newLength ) : void | ||
OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void | ||
ProcessChanges ( ) : void |
Initiates processing of pending changes synchronously.
|
|
TakeThreadOwnerShip ( ) : void |
Makes current thread owner of the tree. Normally only one thread can access the tree.
|
|
ToString ( ) : string |
public AcquireReadLock ( System.Guid treeUserId ) : |
||
treeUserId | System.Guid | |
return |
public EditorTree ( ITextBuffer textBuffer, ICoreShell shell, IExpressionTermFilter filter = null ) : System | ||
textBuffer | ITextBuffer | Text buffer |
shell | ICoreShell | |
filter | IExpressionTermFilter | |
return | System |
public GetCommentBlockContainingRange ( ITextRange range ) : ITextRange | ||
range | ITextRange | Text range to check |
return | ITextRange |
public GetCommentBlockFromPosition ( int position ) : ITextRange | ||
position | int | Position to check |
return | ITextRange |
public GetPositionElement ( int position, IAstNode &node ) : PositionType | ||
position | int | Position in the document text |
node | IAstNode | Node that contains position |
return | PositionType |
public InvokeWhenReady ( Action | ||
action | Action | Action to invoke |
p | object | Parameter to pass to the action |
type | Action identifier | |
processNow | bool | /// If true, change processing begins now. /// If false, next regular parsing pass with process pending changes. /// |
return | void |
public IsRangeInComment ( ITextRange range ) : bool | ||
range | ITextRange | Text range |
return | bool |
public IsRangeInComment ( int position ) : bool | ||
position | int | Position in the document |
return | bool |
public ReleaseReadLock ( System.Guid treeUserId ) : bool | ||
treeUserId | System.Guid | |
return | bool |