C# Class Microsoft.R.Editor.Test.Mocks.EditorTreeMock

Inheritance: IEditorTree
显示文件 Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
AcquireReadLock ( System.Guid treeUserId ) : AstRoot
EditorTreeMock ( ITextBuffer textBuffer, AstRoot ast ) : System
EnsureTreeReady ( ) : void
Invalidate ( ) : void
InvokeWhenReady ( Action action, object p, Type type, bool processNow = false ) : void
ProcessChangesAsync ( System.Action completeCallback ) : void
ReleaseReadLock ( System.Guid treeUserId ) : bool

Method Details

AcquireReadLock() public method

public AcquireReadLock ( System.Guid treeUserId ) : AstRoot
treeUserId System.Guid
return Microsoft.R.Core.AST.AstRoot

EditorTreeMock() public method

public EditorTreeMock ( ITextBuffer textBuffer, AstRoot ast ) : System
textBuffer ITextBuffer
ast Microsoft.R.Core.AST.AstRoot
return System

EnsureTreeReady() public method

public EnsureTreeReady ( ) : void
return void

Invalidate() public method

public Invalidate ( ) : void
return void

InvokeWhenReady() public method

public InvokeWhenReady ( Action action, object p, Type type, bool processNow = false ) : void
action Action
p object
type System.Type
processNow bool
return void

ProcessChangesAsync() public method

public ProcessChangesAsync ( System.Action completeCallback ) : void
completeCallback System.Action
return void

ReleaseReadLock() public method

public ReleaseReadLock ( System.Guid treeUserId ) : bool
treeUserId System.Guid
return bool