CodeQL library for C#
codeql/csharp-all 3.1.1 (changelog, source)
Search

Member predicate Stmt::stripSingletonBlocks

Gets the singleton statement contained in this statement, by removing enclosing block statements.

For example converts { { return x; } } to return x;.

Stmt stripSingletonBlocks()