Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Code.​Syntax­Builders / Syntax­Builder

Class SyntaxBuilder

A base class for ExpressionBuilder and StatementBuilder.

Inheritance
SyntaxBuilder
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public abstract class SyntaxBuilder : Object

Properties

Name Description
StringBuilder

Gets the underlying StringBuilder.

Methods

Name Description
AppendExpression(IExpression)

Appends an expression to the StringBuilder, where the expression is given as an IExpression.

AppendExpression(IExpressionBuilder)

Appends an expression to the StringBuilder, where the expression is given as an IExpressionBuilder.

AppendExpression(Object)

Appends an expression to the StringBuilder, where the expression is a C# expression.

AppendLiteral(Byte, Boolean)

Appends a literal of type Byte to the StringBuilder.

AppendLiteral(Decimal, Boolean)

Appends a literal of type Decimal to the StringBuilder.

AppendLiteral(Double, Boolean)

Appends a literal of type Double to the StringBuilder.

AppendLiteral(Int16, Boolean)

Appends a literal of type Int16 to the StringBuilder.

AppendLiteral(Int32)

Appends a literal of type Int32 to the StringBuilder.

AppendLiteral(Int64, Boolean)

Appends a literal of type Int64 to the StringBuilder.

AppendLiteral(SByte, Boolean)

Appends a literal of type SByte to the StringBuilder.

AppendLiteral(Single, Boolean)

Appends a literal of type Single to the StringBuilder.

AppendLiteral(String, Boolean)

Appends a literal of type String to the StringBuilder.

AppendLiteral(UInt16, Boolean)

Appends a literal of type UInt16 to the StringBuilder.

AppendLiteral(UInt32, Boolean)

Appends a literal of type UInt32 to the StringBuilder.

AppendLiteral(UInt64, Boolean)

Appends a literal of type UInt64 to the StringBuilder.

AppendTypeName(IType)

Appends a fully-qualified type name to the StringBuilder, where the type is given as an IType.

AppendTypeName(Type)

Appends a fully-qualified type name to the StringBuilder, where the type is given as a reflection Type.

AppendVerbatim(String)

Appends a string to the StringBuilder, without performing any modification to the input string.

ToString()

Extension Methods

PresentingExtensions.AsHyperlink(Object)