Class TypeDefinitionCodec
A codec for type definitions.
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 TypeDefinitionCodec : Codec<IType, LNode>
Fields
| Improve this Doc View SourceInstance
Gets an instance of the default type definition codec.
Declaration
public static readonly Codec<IType, LNode> Instance
Field Value
Type | Description |
---|---|
Codec<IType, Loyc.Syntax.LNode> | A type definition codec. |
Methods
| Improve this Doc View SourceDecode(LNode, DecoderState)
Declaration
public override IType Decode(LNode data, DecoderState state)
Parameters
Type | Name | Description |
---|---|---|
Loyc.Syntax.LNode | data | |
DecoderState | state |
Returns
Type | Description |
---|---|
IType |
Overrides
Flame.Ir.Codec<Flame.IType, Loyc.Syntax.LNode>.Decode(Loyc.Syntax.LNode, Flame.Ir.DecoderState)
|
Improve this Doc
View Source
Encode(IType, EncoderState)
Declaration
public override LNode Encode(IType value, EncoderState state)
Parameters
Type | Name | Description |
---|---|---|
IType | value | |
EncoderState | state |
Returns
Type | Description |
---|---|
Loyc.Syntax.LNode |
Overrides
Flame.Ir.Codec<Flame.IType, Loyc.Syntax.LNode>.Encode(Flame.IType, Flame.Ir.EncoderState)