I am trying to update a project that heavily uses comparison with SyntaxToken.Kind. This property seems to have disappeared in newer versions of Roslyn, and I wondered if there was an alternative method or extension method that I could write to get the same functionality?
The code has many links, for example:
if (expression.OperatorToken.Kind == SyntaxKind.PlusEqualsToken)
Any ideas?
source
share