Show / Hide Table of Contents

    Class ClrMethodBodyAnalyzer

    A data structure that analyzes CIL instructions and translates them to Flame IR.

    Inheritance
    System.Object
    ClrMethodBodyAnalyzer
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Clr.Analysis
    Assembly: Flame.Clr.dll
    Syntax
    public sealed class ClrMethodBodyAnalyzer

    Properties

    | Improve this Doc View Source

    Assembly

    Gets a reference to the assembly that defines the method body.

    Declaration
    public ClrAssembly Assembly { get; }
    Property Value
    Type Description
    ClrAssembly

    An assembly reference.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ReturnParameter

    Gets the 'return' parameter of the method body.

    Declaration
    public Parameter ReturnParameter { get; }
    Property Value
    Type Description
    Parameter

    The 'return' parameter.

    | Improve this Doc View Source

    ThisParameter

    Gets the 'this' parameter of the method body.

    Declaration
    public Parameter ThisParameter { get; }
    Property Value
    Type Description
    Parameter

    The 'this' parameter.

    | Improve this Doc View Source

    TypeEnvironment

    Gets the type environment used by this analyzer.

    Declaration
    public TypeEnvironment TypeEnvironment { get; }
    Property Value
    Type Description
    TypeEnvironment

    Methods

    | Improve this Doc View Source

    Analyze(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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX