C# Class ShaderTools.VisualStudio.Hlsl.Util.Extensions.Extensions

Datei anzeigen Open project: tgjones/HlslTools

Public Methods

Method Description
GetBackgroundParser ( this textBuffer ) : BackgroundParser
GetDesiredIndentation ( this textView, ISmartIndentationService smartIndentService, ITextSnapshotLine line ) : int?
GetIncludeFileSystem ( this textBuffer, VisualStudioSourceTextFactory sourceTextFactory ) : IIncludeFileSystem
GetPosition ( this syntaxEditor, ITextSnapshot snapshot ) : int
GetSyntaxTagger ( this textBuffer ) : SyntaxTagger
GetSyntaxTree ( this snapshot, CancellationToken cancellationToken ) : SyntaxTree
GetTextContainer ( this textBuffer ) : VisualStudioSourceTextContainer
TryGetSemanticModel ( this snapshot, CancellationToken cancellationToken, SemanticModel &semanticModel ) : bool

Method Details

GetBackgroundParser() public static method

public static GetBackgroundParser ( this textBuffer ) : BackgroundParser
textBuffer this
return ShaderTools.VisualStudio.Hlsl.Parsing.BackgroundParser

GetDesiredIndentation() public static method

public static GetDesiredIndentation ( this textView, ISmartIndentationService smartIndentService, ITextSnapshotLine line ) : int?
textView this
smartIndentService ISmartIndentationService
line ITextSnapshotLine
return int?

GetIncludeFileSystem() public static method

public static GetIncludeFileSystem ( this textBuffer, VisualStudioSourceTextFactory sourceTextFactory ) : IIncludeFileSystem
textBuffer this
sourceTextFactory ShaderTools.VisualStudio.Hlsl.Text.VisualStudioSourceTextFactory
return IIncludeFileSystem

GetPosition() public static method

public static GetPosition ( this syntaxEditor, ITextSnapshot snapshot ) : int
syntaxEditor this
snapshot ITextSnapshot
return int

GetSyntaxTagger() public static method

public static GetSyntaxTagger ( this textBuffer ) : SyntaxTagger
textBuffer this
return SyntaxTagger

GetSyntaxTree() public static method

public static GetSyntaxTree ( this snapshot, CancellationToken cancellationToken ) : SyntaxTree
snapshot this
cancellationToken System.Threading.CancellationToken
return ShaderTools.Hlsl.Syntax.SyntaxTree

GetTextContainer() public static method

public static GetTextContainer ( this textBuffer ) : VisualStudioSourceTextContainer
textBuffer this
return ShaderTools.VisualStudio.Hlsl.Text.VisualStudioSourceTextContainer

TryGetSemanticModel() public static method

public static TryGetSemanticModel ( this snapshot, CancellationToken cancellationToken, SemanticModel &semanticModel ) : bool
snapshot this
cancellationToken System.Threading.CancellationToken
semanticModel ShaderTools.Hlsl.Compilation.SemanticModel
return bool