Open sandboxFocus

Class StatementExtensions

Extensions to the IStatement interface.

Inheritance
StatementExtensions
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class StatementExtensions

Methods

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.