Show / Hide Table of Contents

    Class IrField

    A field that is decoded from a Flame IR field LNode.

    Inheritance
    System.Object
    IrMember
    IrField
    Implements
    IField
    ITypeMember
    IMember
    Inherited Members
    IrMember.Node
    IrMember.Decoder
    IrMember.QualifyName(QualifiedName)
    IrMember.FullName
    IrMember.Name
    IrMember.Attributes
    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 Source

    FieldType

    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.

    | Improve this Doc View Source

    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

    true if this field is static; otherwise, false.

    | Improve this Doc View Source

    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 Source

    Decode(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, null.

    | Improve this Doc View Source

    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.

    Implements

    IField
    ITypeMember
    IMember
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX