CSharpFacts.CanHaveStatements(SyntaxKind) Method
Containing Type: CSharpFacts
Assembly: Roslynator.CSharp.dll
Returns true if a syntax of the specified kind can have statements. It can be either BlockSyntax or SwitchSectionSyntax.
public static bool CanHaveStatements(Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)
Parameters
kind SyntaxKind