Namespace Metalama.Framework.Code.SyntaxBuilders
Classes
ArrayBuilder
Compile-time object that allows to build a run-time array. Items of the array are run-time expressions.
ExpressionBuilder
Allows to build a run-time expression by composing a string thanks to an underlying StringBuilder. Use the ToExpression() method to convert the ExpressionBuilder into a compile-time representation of the expression, or the ToValue(IExpressionBuilder) methods converts it to a dynamic expression that can be used in the C# code of the template.
ExpressionBuilderExtensions
ExpressionFactory
Provides several ways to create instances of the IExpression interface.
InterpolatedStringBuilder
Compile-time object that allows to build a run-time interpolated string.
StatementBuilder
Allows to build a run-time statement that can be injected to run-time code using ToStatement() and InsertStatement(IStatement).
StatementFactory
Creates instances of the IStatement interface.
SyntaxBuilder
A base class for ExpressionBuilder and StatementBuilder.
Interfaces
IExpressionBuilder
Interface to be implemented by any compile-time object that can be serialized into a run-time expression.
INotNullExpressionBuilder
An IExpressionBuilder that is guaranteed to produce a non-null value.
IStatement
Represents a statement, which can be inserted into run-time code using the InsertStatement(IStatement). To create a statement, use StatementFactory or StatementBuilder. method.