Search Results for

    Show / Hide Table of Contents

    Class ClrMethodBodyAnalyzer

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

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

    Properties

    | Edit this page 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.

    | Edit this page View Source

    Parameters

    Gets the parameter list of the method body.

    Declaration
    public IReadOnlyList<Parameter> Parameters { get; }
    Property Value
    Type Description
    IReadOnlyList<Parameter>

    The parameter list.

    | Edit this page View Source

    ReturnParameter

    Gets the 'return' parameter of the method body.

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

    The 'return' parameter.

    | Edit this page View Source

    ThisParameter

    Gets the 'this' parameter of the method body.

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

    The 'this' parameter.

    | Edit this page View Source

    TypeEnvironment

    Gets the type environment used by this analyzer.

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

    Methods

    | Edit this page View Source

    Analyze(MethodBody, ClrMethodDefinition)

    Analyzes a particular method body.

    Declaration
    public static MethodBody Analyze(MethodBody cilMethodBody, ClrMethodDefinition method)
    Parameters
    Type Name Description
    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.

    | Edit this page 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
    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.

    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.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX