Class DescribedGenericParameter
A generic parameter that can be constructed piece by piece in an imperative fashion.
Inherited Members
Namespace: Flame.TypeSystem
Assembly: Flame.dll
Syntax
public sealed class DescribedGenericParameter : DescribedGenericMember, IGenericParameter, IType, IGenericMember, IMember
Constructors
| Improve this Doc View SourceDescribedGenericParameter(IGenericMember, SimpleName)
Creates a generic parameter from a declaring member and a name.
Declaration
public DescribedGenericParameter(IGenericMember parentMember, SimpleName name)
Parameters
Type | Name | Description |
---|---|---|
IGenericMember | parentMember | The member that declares the generic parameter. |
SimpleName | name | The generic parameter's name. |
DescribedGenericParameter(IGenericMember, String)
Creates a generic parameter from a declaring member and a name.
Declaration
public DescribedGenericParameter(IGenericMember parentMember, string name)
Parameters
Type | Name | Description |
---|---|---|
IGenericMember | parentMember | The member that declares the generic parameter. |
System.String | name | The generic parameter's name. |
Properties
| Improve this Doc View SourceBaseTypes
Gets this type's base types. Base types can be either classes or interfaces.
Declaration
public IReadOnlyList<IType> BaseTypes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IType> | A read-only list of base types. |
Fields
Gets this type's fields.
Declaration
public IReadOnlyList<IField> Fields { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IField> | A read-only list of fields. |
Methods
Gets this type's methods.
Declaration
public IReadOnlyList<IMethod> Methods { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IMethod> | A read-only list of methods. |
NestedTypes
Gets the nested types defined by this type.
Declaration
public IReadOnlyList<IType> NestedTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IType> | A read-only list of nested types. |
Parent
Gets the parent entity that defines and owns this type.
Declaration
public TypeParent Parent { get; }
Property Value
Type | Description |
---|---|
TypeParent | The parent entity. |
ParentMember
Gets the generic member that defines this generic parameter.
Declaration
public IGenericMember ParentMember { get; }
Property Value
Type | Description |
---|---|
IGenericMember |
Properties
Gets this type's properties.
Declaration
public IReadOnlyList<IProperty> Properties { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IProperty> | A read-only list of properties. |