StatementListInfo.ParentAsBlock Property
Containing Type: StatementListInfo
Assembly: Roslynator.CSharp.dll
Gets a block that contains the statements. Returns null if the statements are not contained in a block.
public Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? ParentAsBlock { get; }