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

Inheritance: IDisposable
Afficher le fichier Open project: tgjones/HlslTools

Méthodes publiques

Méthode Description
Dispose ( ) : void
SubscribeToThrottledSemanticModelAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
SubscribeToThrottledSyntaxTreeAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable

Méthodes protégées

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

Private Methods

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

Method Details

BackgroundParserBase() protected méthode

protected BackgroundParserBase ( ITextBuffer textBuffer ) : System
textBuffer ITextBuffer
Résultat System

CreateSyntaxTree() protected abstract méthode

protected abstract CreateSyntaxTree ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : void
snapshot ITextSnapshot
cancellationToken System.Threading.CancellationToken
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

SubscribeToThrottledSemanticModelAvailable() public méthode

public SubscribeToThrottledSemanticModelAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
delay BackgroundParserSubscriptionDelay
callback Action
Résultat IDisposable

SubscribeToThrottledSyntaxTreeAvailable() public méthode

public SubscribeToThrottledSyntaxTreeAvailable ( BackgroundParserSubscriptionDelay delay, Action callback ) : IDisposable
delay BackgroundParserSubscriptionDelay
callback Action
Résultat IDisposable

TryCreateSemanticModel() protected abstract méthode

protected abstract TryCreateSemanticModel ( ITextSnapshot snapshot, CancellationToken cancellationToken ) : bool
snapshot ITextSnapshot
cancellationToken System.Threading.CancellationToken
Résultat bool