Skip to main content

CSharpFacts.CanHaveEmbeddedStatement(SyntaxKind) Method

Containing Type: CSharpFacts

Assembly: Roslynator.CSharp.dll

Returns true if a syntax of the specified kind can have an embedded statement.

public static bool CanHaveEmbeddedStatement(Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)

Parameters

kind SyntaxKind

Returns

Boolean