A
A
Alexander Simonov2018-06-18 16:58:53
.NET
Alexander Simonov, 2018-06-18 16:58:53

How to get parameter type in Roslyn parser?

Hello everyone
Could you help me, I need to write a Roslyn Analyzer so that when passing a parameter to a function I can check its type and make corrections?
He swears at this, says that "parameters are not supported in RegisterSymbolAction"

public override void Initialize(AnalysisContext context)
{
  context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.Parameter);
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question