Extensions to the IStatement interface.
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class StatementExtensionsMethods
| Name | Description |
|---|---|
| AsList(IStatement) | Wraps a given IStatement into a singleton IStatementList. |
| AsList(IEnumerable<IStatement>) | Wraps a list of IStatement into an IStatementList. |
| UnwrapBlock(IStatement) | Unwraps a block (i.e. remove its braces), if the statement is a block, and returns the resulting IStatementList. |