Where can I find which types of characters are under different kinds of characters in Roslyn?

I am trying to register a SymbolAction using the following code:

context.RegisterSymbolAction(AnalyzeSymbol, SymbolKind.???);

I found the exact node I want to map using Syntax Visualizer:

enter image description here

You can see that the window indicates what Kindis Attribute, but the SymbolKindlisting does not offer this kind.

As you can see, I am confused - I thought that the syntax tree shows me exactly what the symbols of the symbols of the syntax nodes are talking about. But now I'm not sure.

If I am doing basically the right thing, I want to ask: where can I find out what SymbolKindenum value should be used for a given node type?

+4
1

: , RegisterSyntaxNodeAction SyntaxKind, SyntaxNode - , .

" ?" , , : SourceConstructorSymbol, IMethodSymbol.

+4

Source: https://habr.com/ru/post/1613807/


All Articles