Show / Hide Table of Contents

    Class MethodSpecialization

    A base type for method specializations.

    Inheritance
    System.Object
    MethodSpecialization
    DirectMethodSpecialization
    IndirectMethodSpecialization
    Implements
    IMethod
    ITypeMember
    IGenericMember
    IMember
    Inherited Members
    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 abstract class MethodSpecialization : IMethod, ITypeMember, IGenericMember, IMember

    Constructors

    | Improve this Doc View Source

    MethodSpecialization(IMethod)

    Creates an uninitialized generic method specialization from a generic declaration.

    Declaration
    public MethodSpecialization(IMethod declaration)
    Parameters
    Type Name Description
    IMethod declaration

    A generic method declaration.

    Properties

    | Improve this Doc View Source

    Attributes

    Gets the member's attributes.

    Declaration
    public AttributeMap Attributes { get; }
    Property Value
    Type Description
    AttributeMap
    | 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

    Declaration

    Gets the method declaration of which this method is a specialization.

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

    The method declaration.

    | Improve this Doc View Source

    FullName

    Gets the member's full name.

    Declaration
    public abstract QualifiedName FullName { get; }
    Property Value
    Type Description
    QualifiedName
    | Improve this Doc View Source

    GenericParameters

    Gets the list of generic parameters for this generic member.

    Declaration
    public abstract IReadOnlyList<IGenericParameter> GenericParameters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IGenericParameter>

    The generic parameters.

    | Improve this Doc View Source

    IsConstructor

    Indicates if this method is a constructor.

    Declaration
    public bool IsConstructor { get; }
    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; }
    Property Value
    Type Description
    System.Boolean

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

    | Improve this Doc View Source

    Name

    Gets the member's unqualified name.

    Declaration
    public abstract UnqualifiedName Name { get; }
    Property Value
    Type Description
    UnqualifiedName
    | 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 parent type specialization that defines this method specialization.

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

    The parent type specialization.

    | Improve this Doc View Source

    ReturnParameter

    Gets the method's return parameter.

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

    Methods

    | Improve this Doc View Source

    InitializeInstance(MethodSpecialization)

    Initializes a method specialization instance.

    Declaration
    protected static MethodSpecialization InitializeInstance(MethodSpecialization instance)
    Parameters
    Type Name Description
    MethodSpecialization instance

    The instance to initialize.

    Returns
    Type Description
    MethodSpecialization

    instance itself.

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    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