Class DescribedBodyAccessor
A property accessor that can be constructed incrementally in an imperative fashion and defines a method body.
Inheritance
System.Object
DescribedBodyAccessor
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.Compiler.dll
Syntax
public sealed class DescribedBodyAccessor : DescribedAccessor, IAccessor, IBodyMethod, IMethod, ITypeMember, IGenericMember, IMember
Constructors
| Improve this Doc View SourceDescribedBodyAccessor(IProperty, AccessorKind, UnqualifiedName, Boolean, IType)
Creates a new accessor.
Declaration
public DescribedBodyAccessor(IProperty parentProperty, AccessorKind kind, UnqualifiedName name, bool isStatic, IType returnType)
Parameters
Type | Name | Description |
---|---|---|
IProperty | parentProperty | The property in which this accessor is defined. |
AccessorKind | kind | The accessor's kind. |
UnqualifiedName | name | The accessor's name. |
System.Boolean | isStatic | Tells if the accessor should be a static method or an instance method. |
IType | returnType | The type of value returned by the accessor. |
Properties
| Improve this Doc View SourceBody
Gets the method body for this method.
Declaration
public MethodBody Body { get; set; }
Property Value
Type | Description |
---|---|
MethodBody | A method body. |