Class CodeGenerationContext
A code generation context.
Inheritance
System.Object
System.Dynamic.DynamicObject
CodeGenerationContext
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable
Inherited Members
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Generation
Assembly: Kephas.CodeAnalysis.dll
Syntax
public class CodeGenerationContext : Context, ICodeGenerationContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IDisposable
Constructors
| Improve this Doc View SourceCodeGenerationContext(ICompositionContext, ICodeGenerator, ICodeFormatter)
Initializes a new instance of the CodeGenerationContext class.
Declaration
public CodeGenerationContext(ICompositionContext compositionContext, ICodeGenerator codeGenerator, ICodeFormatter codeFormatter = null)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | Context for the composition. |
ICodeGenerator | codeGenerator | The code generator. |
ICodeFormatter | codeFormatter | Optional. The code formatter. |
Properties
| Improve this Doc View SourceCodeFormatter
Gets the code formatter.
Declaration
public ICodeFormatter CodeFormatter { get; }
Property Value
Type | Description |
---|---|
ICodeFormatter | The code formatter. |
CodeGenerator
Gets the code generator.
Declaration
public ICodeGenerator CodeGenerator { get; }
Property Value
Type | Description |
---|---|
ICodeGenerator | The code generator. |
Implements
System.Dynamic.IDynamicMetaObjectProvider
System.IDisposable