Search Results for

    Show / Hide Table of Contents

    Class IrMethod

    A method that is decoded from a Flame IR method LNode.

    Inheritance
    object
    IrMember
    IrMethod
    Implements
    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember
    Inherited Members
    IrMember.Node
    IrMember.Decoder
    IrMember.QualifyName(QualifiedName)
    IrMember.FullName
    IrMember.Name
    IrMember.Attributes
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Ir
    Assembly: Flame.Ir.dll
    Syntax
    public class IrMethod : IrMember, IBodyMethod, IMethod, ITypeMember, IGenericMember, IMember

    Properties

    | Edit this page View Source

    BaseMethods

    Gets the method's base methods.

    Declaration
    public IReadOnlyList<IMethod> BaseMethods { get; }
    Property Value
    Type Description
    IReadOnlyList<IMethod>
    | Edit this page View Source

    Body

    Gets the method body for this method.

    Declaration
    public MethodBody Body { get; }
    Property Value
    Type Description
    MethodBody

    A method body.

    | Edit this page View Source

    GenericParameters

    Gets the list of generic parameters for this generic member.

    Declaration
    public IReadOnlyList<IGenericParameter> GenericParameters { get; }
    Property Value
    Type Description
    IReadOnlyList<IGenericParameter>

    The generic parameters.

    | Edit this page View Source

    IsConstructor

    Indicates if this method is a constructor.

    Declaration
    public bool IsConstructor { get; }
    Property Value
    Type Description
    bool

    true if this method is a constructor; otherwise, false.

    | Edit this page View Source

    IsStatic

    Tells if this is a static method. Non-static methods take a non-null pointer to their parent type as an implicit first arguments. Static methods do not.

    Declaration
    public bool IsStatic { get; }
    Property Value
    Type Description
    bool

    true if this method is a static method; otherwise, false.

    | Edit this page View Source

    Parameters

    Gets the method's parameters.

    Declaration
    public IReadOnlyList<Parameter> Parameters { get; }
    Property Value
    Type Description
    IReadOnlyList<Parameter>
    | Edit this page View Source

    ParentType

    Gets the type that defines this member, if any.

    Declaration
    public IType ParentType { get; }
    Property Value
    Type Description
    IType

    The parent type.

    | Edit this page View Source

    ReturnParameter

    Gets the method's return parameter.

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

    Methods

    | Edit this page View Source

    Decode(LNode, DecoderState)

    Decodes a method from an LNode.

    Declaration
    public static IMethod Decode(LNode data, DecoderState state)
    Parameters
    Type Name Description
    LNode data

    The LNode to decode.

    DecoderState state

    The decoder to use.

    Returns
    Type Description
    IMethod

    A decoded method if the node can be decoded; otherwise, null.

    | Edit this page View Source

    Encode(IMethod, EncoderState)

    Encodes a method as an LNode.

    Declaration
    public static LNode Encode(IMethod value, EncoderState state)
    Parameters
    Type Name Description
    IMethod value

    The method to encode.

    EncoderState state

    The encoder to use.

    Returns
    Type Description
    LNode

    An LNode that represents the method.

    Implements

    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember

    Extension Methods

    AccessModifierAttribute.GetAccessModifier(IMember)
    MemorySpecificationExtensions.GetMemorySpecification(IMethod)
    ExceptionSpecificationExtensions.GetExceptionSpecification(IMethod)
    TypeExtensions.GetGenericArguments(IMethod)
    TypeExtensions.GetRecursiveGenericArgumentMapping(IMethod)
    TypeExtensions.GetRecursiveGenericDeclaration(IMethod)
    TypeExtensions.MakeGenericMethod(IMethod, params IType[])
    TypeExtensions.MakeGenericMethod(IMethod, IReadOnlyList<IType>)
    FlagAttribute.IsAbstract(IMethod)
    FlagAttribute.IsInternalCall(IMethod)
    FlagAttribute.IsVirtual(IMethod)
    TypeExtensions.GetDefiningAssemblyOrNull(ITypeMember)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX