C# Class IntelliFind.RoslynVisxHelpers

Afficher le fichier Open project: FrankBakkerNl/IntelliFind Class Usage Examples

Private Properties

Свойство Type Description
GetAbsolutePosition int
GetCodeAnalysisDocumentFromDteDocument Microsoft.CodeAnalysis.Document

Méthodes publiques

Méthode Description
GetCodeAnalysisDocument ( ) : Microsoft.CodeAnalysis.Document
GetSelectedToken ( ) : SyntaxToken?

Finds the SyntaxToken that is currently selected in the Active Document.

GetWorkspace ( ) : Microsoft.CodeAnalysis.Workspace
SelectSpanInCodeWindow ( FileLinePositionSpan span ) : void

Private Methods

Méthode Description
GetAbsolutePosition ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, int line, int lineCharOffset ) : int

Gets the absolute position in the synatxtree from the line and character offset

GetCodeAnalysisDocumentFromDteDocument ( EnvDTE activeDocument, Microsoft.CodeAnalysis.Workspace workspace ) : Microsoft.CodeAnalysis.Document

Method Details

GetCodeAnalysisDocument() public static méthode

public static GetCodeAnalysisDocument ( ) : Microsoft.CodeAnalysis.Document
Résultat Microsoft.CodeAnalysis.Document

GetSelectedToken() public static méthode

Finds the SyntaxToken that is currently selected in the Active Document.
public static GetSelectedToken ( ) : SyntaxToken?
Résultat SyntaxToken?

GetWorkspace() public static méthode

public static GetWorkspace ( ) : Microsoft.CodeAnalysis.Workspace
Résultat Microsoft.CodeAnalysis.Workspace

SelectSpanInCodeWindow() public static méthode

public static SelectSpanInCodeWindow ( FileLinePositionSpan span ) : void
span FileLinePositionSpan
Résultat void