Class IrAssembly
An assembly that is decoded from a Flame IR field LNode.
Inherited Members
Namespace: Flame.Ir
Assembly: Flame.Ir.dll
Syntax
public sealed class IrAssembly : IrMember, IAssembly, IMember
Constructors
| Edit this page View SourceIrAssembly(LNode, DecoderState)
Creates a Flame IR assembly from an appropriately-encoded LNode.
Declaration
public IrAssembly(LNode node, DecoderState decoder)
Parameters
| Type | Name | Description |
|---|---|---|
| LNode | node | The node to decode. |
| DecoderState | decoder | The decoder to use. |
Properties
| Edit this page View SourceTypes
Gets a list of all top-level types defined in this assembly.
Declaration
public IReadOnlyList<IType> Types { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IType> | A list of types that are defined in this assembly. |
Methods
| Edit this page View SourceDecode(LNode, DecoderState)
Decodes an assembly from an LNode.
Declaration
public static IrAssembly Decode(LNode data, DecoderState state)
Parameters
| Type | Name | Description |
|---|---|---|
| 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, |
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 |
|---|---|
| LNode | An LNode that represents the assembly. |