C# Class IntelliFind.RoslynVisxHelpers

ファイルを表示 Open project: FrankBakkerNl/IntelliFind Class Usage Examples

Private Properties

Property Type Description
GetAbsolutePosition int
GetCodeAnalysisDocumentFromDteDocument Microsoft.CodeAnalysis.Document

Public Methods

Method 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

Method 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 method

public static GetCodeAnalysisDocument ( ) : Microsoft.CodeAnalysis.Document
return Microsoft.CodeAnalysis.Document

GetSelectedToken() public static method

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

GetWorkspace() public static method

public static GetWorkspace ( ) : Microsoft.CodeAnalysis.Workspace
return Microsoft.CodeAnalysis.Workspace

SelectSpanInCodeWindow() public static method

public static SelectSpanInCodeWindow ( FileLinePositionSpan span ) : void
span FileLinePositionSpan
return void