Show / Hide Table of Contents

    Class DescribedMethod

    A method that can be constructed incrementally in an imperative fashion.

    Inheritance
    System.Object
    DescribedMember
    DescribedGenericMember
    DescribedMethod
    DescribedAccessor
    DescribedBodyMethod
    Implements
    IMethod
    ITypeMember
    IGenericMember
    IMember
    Inherited Members
    DescribedGenericMember.GenericParameters
    DescribedGenericMember.AddGenericParameter(IGenericParameter)
    DescribedMember.FullName
    DescribedMember.Name
    DescribedMember.Attributes
    DescribedMember.AddAttribute(IAttribute)
    DescribedMember.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.TypeSystem
    Assembly: Flame.dll
    Syntax
    public class DescribedMethod : DescribedGenericMember, IMethod, ITypeMember, IGenericMember, IMember

    Constructors

    | Improve this Doc View Source

    DescribedMethod(IType, UnqualifiedName, Boolean, IType)

    Creates a method from a parent type, a name, a staticness and a return type.

    Declaration
    public DescribedMethod(IType parentType, UnqualifiedName name, bool isStatic, IType returnType)
    Parameters
    Type Name Description
    IType parentType

    The method's parent type.

    UnqualifiedName name

    The method's name.

    System.Boolean isStatic

    Tells if the method should be a static method or an instance method.

    IType returnType

    The type of value returned by the method.

    Properties

    | Improve this Doc View Source

    BaseMethods

    Gets the method's base methods.

    Declaration
    public IReadOnlyList<IMethod> BaseMethods { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IMethod>
    | Improve this Doc View Source

    IsConstructor

    Indicates if this method is a constructor.

    Declaration
    public bool IsConstructor { get; set; }
    Property Value
    Type Description
    System.Boolean

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

    | Improve this Doc 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; set; }
    Property Value
    Type Description
    System.Boolean

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

    | Improve this Doc View Source

    Parameters

    Gets the method's parameters.

    Declaration
    public IReadOnlyList<Parameter> Parameters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<Parameter>
    | Improve this Doc 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.

    | Improve this Doc View Source

    ReturnParameter

    Gets the method's return parameter.

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

    Methods

    | Improve this Doc View Source

    AddBaseMethod(IMethod)

    Adds a method to this method's base methods.

    Declaration
    public void AddBaseMethod(IMethod baseMethod)
    Parameters
    Type Name Description
    IMethod baseMethod

    The base method.

    | Improve this Doc View Source

    AddParameter(Parameter)

    Adds a parameter to the back of this method's parameter list.

    Declaration
    public void AddParameter(Parameter parameter)
    Parameters
    Type Name Description
    Parameter parameter

    The parameter to add.

    Implements

    IMethod
    ITypeMember
    IGenericMember
    IMember

    Extension Methods

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