C# Class ShaderTools.VisualStudio.Core.Parsing.BackgroundParserBase

Inheritance: IDisposable
Datei anzeigen Open project: tgjones/HlslTools

Public Methods

Method Description
Dispose ( ) : void
SubscribeToThrottledSemanticModelAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
SubscribeToThrottledSyntaxTreeAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable

Protected Methods

Method Description
BackgroundParserBase ( ITextBuffer textBuffer ) : System
CreateSyntaxTree ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : void
TryCreateSemanticModel ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : bool

Private Methods

Method Description
DoWork ( ) : void
GetDelay ( BackgroundParserSubscriptionDelay delay ) : System.TimeSpan
OnTextBufferChanged ( object sender, TextContentChangedEventArgs e ) : void
RaiseEvent ( EventHandler handler, BackgroundParserEventArgs args ) : void

Method Details

BackgroundParserBase() protected method

protected BackgroundParserBase ( ITextBuffer textBuffer ) : System
textBuffer ITextBuffer
return System

CreateSyntaxTree() protected abstract method

protected abstract CreateSyntaxTree ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : void
snapshot ITextSnapshot
cancellationToken System.Threading.CancellationToken
return void

Dispose() public method

public Dispose ( ) : void
return void

SubscribeToThrottledSemanticModelAvailable() public method

public SubscribeToThrottledSemanticModelAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
delay BackgroundParserSubscriptionDelay
callback Action
return IDisposable

SubscribeToThrottledSyntaxTreeAvailable() public method

public SubscribeToThrottledSyntaxTreeAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
delay BackgroundParserSubscriptionDelay
callback Action
return IDisposable

TryCreateSemanticModel() protected abstract method

protected abstract TryCreateSemanticModel ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : bool
snapshot ITextSnapshot
cancellationToken System.Threading.CancellationToken
return bool