Show / Hide Table of Contents

    Class DescribedBodyMethod

    A method that can be constructed incrementally in an imperative fashion and defines a method body.

    Inheritance
    System.Object
    DescribedMember
    DescribedGenericMember
    DescribedMethod
    DescribedBodyMethod
    Implements
    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember
    Inherited Members
    DescribedMethod.ParentType
    DescribedMethod.IsConstructor
    DescribedMethod.IsStatic
    DescribedMethod.ReturnParameter
    DescribedMethod.Parameters
    DescribedMethod.BaseMethods
    DescribedMethod.AddParameter(Parameter)
    DescribedMethod.AddBaseMethod(IMethod)
    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.Compiler.dll
    Syntax
    public sealed class DescribedBodyMethod : DescribedMethod, IBodyMethod, IMethod, ITypeMember, IGenericMember, IMember

    Constructors

    | Improve this Doc View Source

    DescribedBodyMethod(IType, UnqualifiedName, Boolean, IType)

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

    Declaration
    public DescribedBodyMethod(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

    Body

    Gets the method body for this method.

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

    A method body.

    Implements

    IBodyMethod
    IMethod
    ITypeMember
    IGenericMember
    IMember

    Extension Methods

    MemorySpecificationExtensions.GetMemorySpecification(IMethod)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX