How can I get information about the current workspace (for example, the project path, the solution path) in Diagnostics with the project code correction?
I am doing diagnostics like ISyntaxNodeAnalyzer
I need to access SymbolFinder.FindImplementationsAsync, but for this I need an instance of the solution
EDIT: I have a code:
var syntax = (LocalDeclarationStatementSyntax) node;
var type = syntax.Declaration.Type;
var typeSymbol = semanticModel.GetTypeInfo(type).ConvertedType;
I would like to know all the usages / links of type Symbol. TypeSymbol represents a class located in the source code.
To do this, I wanted to use SymbolFinder, but SymbolFinder methods require an instance of a solution ... In the old version of Roslyn, the document was set as a parameter of the diagnostic parameter, you could get a project and a solution.