Class IrAssembly
An assembly 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 IrAssembly : IrMember, IAssembly, IMember
Constructors
| Improve this Doc 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 |
---|---|---|
Loyc.Syntax.LNode | node | The node to decode. |
DecoderState | decoder | The decoder to use. |
Properties
| Improve this Doc View SourceTypes
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 SourceDecode(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, |
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. |