Class IrField
A field that is decoded from a Flame IR field LNode.
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.Ir
Assembly: Flame.Ir.dll
Syntax
public sealed class IrField : IrMember, IField, ITypeMember, IMember
Properties
| Improve this Doc View SourceFieldType
Gets the type of value stored in this field.
Declaration
public IType FieldType { get; }
Property Value
Type | Description |
---|---|
IType | The type of value stored in this field. |
IsStatic
Tells if this field is static. The storage for static fields is shared by the entire application, whereas the storage for instance (i.e., non-static) fields is specific to an instance of a type.
Declaration
public bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ParentType
Gets the type that defines this member, if any.
Declaration
public IType ParentType { get; }
Property Value
Type | Description |
---|---|
IType | The parent type. |
Methods
| Improve this Doc View SourceDecode(LNode, DecoderState)
Decodes a field from an LNode.
Declaration
public static IField Decode(LNode data, DecoderState state)
Parameters
Type | Name | Description |
---|---|---|
Loyc.Syntax.LNode | data | The LNode to decode. |
DecoderState | state | The decoder to use. |
Returns
Type | Description |
---|---|
IField | A decoded field if the node can be decoded;
otherwise, |
Encode(IField, EncoderState)
Encodes a field as an LNode.
Declaration
public static LNode Encode(IField value, EncoderState state)
Parameters
Type | Name | Description |
---|---|---|
IField | value | The field to encode. |
EncoderState | state | The encoder to use. |
Returns
Type | Description |
---|---|
Loyc.Syntax.LNode | An LNode that represents the field. |