Class IntrinsicAttribute
Describes a named attribute that is well-understood by the compiler.
Inheritance
System.Object
IntrinsicAttribute
Implements
Inherited Members
System.Object.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.dll
Syntax
public sealed class IntrinsicAttribute : IAttribute
Constructors
| Improve this Doc 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 |
---|---|---|
System.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 |
---|---|---|
System.String | name | The attribute's name. |
System.Collections.Generic.IReadOnlyList<Constant> | arguments | The attribute's list of arguments. |
Properties
| Improve this Doc View SourceArguments
Gets the list of arguments that is supplied to this intrinsic attribute.
Declaration
public IReadOnlyList<Constant> Arguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.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 |
---|---|
System.String | The name of the intrinsic attribute. |
Methods
| Improve this Doc 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 |
---|---|---|
System.String | name | The name to find an intrinsic attribute type for. |
Returns
Type | Description |
---|---|
IType | An intrinsic attribute type. |