Class ClrMethodBodyAnalyzer
A data structure that analyzes CIL instructions and translates them to Flame IR.
Inheritance
Inherited Members
Namespace: Flame.Clr.Analysis
Assembly: Flame.Clr.dll
Syntax
public sealed class ClrMethodBodyAnalyzer
Properties
| Improve this Doc View SourceAssembly
Gets a reference to the assembly that defines the method body.
Declaration
public ClrAssembly Assembly { get; }
Property Value
Type | Description |
---|---|
ClrAssembly | An assembly reference. |
Parameters
Gets the parameter list of the method body.
Declaration
public IReadOnlyList<Parameter> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Parameter> | The parameter list. |
ReturnParameter
Gets the 'return' parameter of the method body.
Declaration
public Parameter ReturnParameter { get; }
Property Value
Type | Description |
---|---|
Parameter | The 'return' parameter. |
ThisParameter
Gets the 'this' parameter of the method body.
Declaration
public Parameter ThisParameter { get; }
Property Value
Type | Description |
---|---|
Parameter | The 'this' parameter. |
TypeEnvironment
Gets the type environment used by this analyzer.
Declaration
public TypeEnvironment TypeEnvironment { get; }
Property Value
Type | Description |
---|---|
TypeEnvironment |
Methods
| Improve this Doc View SourceAnalyze(MethodBody, ClrMethodDefinition)
Analyzes a particular method body.
Declaration
public static MethodBody Analyze(MethodBody cilMethodBody, ClrMethodDefinition method)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.Cil.MethodBody | cilMethodBody | The CIL method body to analyze. |
ClrMethodDefinition | method | The method that defines the method body. |
Returns
Type | Description |
---|---|
MethodBody | A Flame IR method body. |
Analyze(MethodBody, Parameter, Parameter, IReadOnlyList<Parameter>, ClrAssembly)
Analyzes a particular method body.
Declaration
public static MethodBody Analyze(MethodBody cilMethodBody, Parameter returnParameter, Parameter thisParameter, IReadOnlyList<Parameter> parameters, ClrAssembly assembly)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.Cil.MethodBody | cilMethodBody | The CIL method body to analyze. |
Parameter | returnParameter | The 'return' parameter of the method body. |
Parameter | thisParameter | The 'this' parameter of the method body. |
System.Collections.Generic.IReadOnlyList<Parameter> | parameters | The parameter list of the method body. |
ClrAssembly | assembly | A reference to the assembly that defines the method body. |
Returns
Type | Description |
---|---|
MethodBody | A Flame IR method body. |