Class IntrinsicAttribute
Describes a named attribute that is well-understood by the compiler.
Implements
Inherited Members
Namespace: Flame.TypeSystem
Assembly: Flame.dll
Syntax
public sealed class IntrinsicAttribute : IAttribute
Constructors
| Edit this page View SourceIntrinsicAttribute(string)
Creates an intrinsic attribute with the given name and an empty argument list.
Declaration
public IntrinsicAttribute(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The attribute's name. |
IntrinsicAttribute(string, IReadOnlyList<Constant>)
Creates an intrinsic attribute with the given name and argument list.
Declaration
public IntrinsicAttribute(string name, IReadOnlyList<Constant> arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The attribute's name. |
| IReadOnlyList<Constant> | arguments | The attribute's list of arguments. |
Properties
| Edit this page View SourceArguments
Gets the list of arguments that is supplied to this intrinsic attribute.
Declaration
public IReadOnlyList<Constant> Arguments { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Constant> | The argument list. |
AttributeType
Gets the type for this attribute.
Declaration
public IType AttributeType { get; }
Property Value
| Type | Description |
|---|---|
| IType | The attribute type. |
Name
Gets the name of this intrinsic attribute.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string | The name of the intrinsic attribute. |
Methods
| Edit this page View SourceGetIntrinsicAttributeType(string)
Gets the intrinsic attribute type for a particular intrinsic attribute name.
Declaration
public static IType GetIntrinsicAttributeType(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name to find an intrinsic attribute type for. |
Returns
| Type | Description |
|---|---|
| IType | An intrinsic attribute type. |