Show / Hide Table of Contents

    Class IrAssembly

    An assembly that is decoded from a Flame IR field LNode.

    Inheritance
    System.Object
    IrMember
    IrAssembly
    Implements
    IAssembly
    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 IrAssembly : IrMember, IAssembly, IMember

    Constructors

    | Improve this Doc View Source

    IrAssembly(LNode, DecoderState)

    Creates a Flame IR assembly from an appropriately-encoded LNode.

    Declaration
    public IrAssembly(LNode node, DecoderState decoder)
    Parameters
    Type Name Description
    Loyc.Syntax.LNode node

    The node to decode.

    DecoderState decoder

    The decoder to use.

    Properties

    | Improve this Doc View Source

    Types

    Gets a list of all top-level types defined in this assembly.

    Declaration
    public IReadOnlyList<IType> Types { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IType>

    A list of types that are defined in this assembly.

    Methods

    | Improve this Doc View Source

    Decode(LNode, DecoderState)

    Decodes an assembly from an LNode.

    Declaration
    public static IrAssembly 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
    IrAssembly

    A decoded assembly if the node can be decoded; otherwise, null.

    | Improve this Doc View Source

    Encode(IAssembly, EncoderState)

    Encodes an assembly as an LNode.

    Declaration
    public static LNode Encode(IAssembly value, EncoderState state)
    Parameters
    Type Name Description
    IAssembly value

    The assembly to encode.

    EncoderState state

    The encoder to use.

    Returns
    Type Description
    Loyc.Syntax.LNode

    An LNode that represents the assembly.

    Implements

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