Class ClrMethodBodyEmitter
Converts a Flame IR method body to a CLR method body.
Inherited Members
Namespace: Flame.Clr.Emit
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrMethodBodyEmitter
Methods
| Edit this page View SourceCompile(MethodBody, MethodDefinition, TypeEnvironment)
Compiles Flame IR to CIL.
Declaration
public static MethodBody Compile(MethodBody sourceBody, MethodDefinition method, TypeEnvironment typeEnvironment)
Parameters
| Type | Name | Description |
|---|---|---|
| MethodBody | sourceBody | A Flame IR method body to compile to a CIL method body. |
| MethodDefinition | method | The method to which the CIL method body can be assigned. |
| TypeEnvironment | typeEnvironment | A type environment. |
Returns
| Type | Description |
|---|---|
| MethodBody | A CIL method body. |