Skip to content

Commit 1f77db4

Browse files
committed
Update generated serializers.
1 parent 7609977 commit 1f77db4

688 files changed

Lines changed: 39752 additions & 12670 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/MsgPack.UnitTest.Net35/gen/MsgPack_Serialization_AbstractClassCollectionKnownTypeSerializer.cs

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ public class MsgPack_Serialization_AbstractClassCollectionKnownTypeSerializer :
1717

1818
private MsgPack.Serialization.MessagePackSerializer<System.Collections.ObjectModel.KeyedCollection<string, string>> _serializer0;
1919

20-
private System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType> this_PackValueOfValueDelegate;
21-
2220
private System.Collections.Generic.IList<System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType>> _packOperationList;
2321

2422
private System.Collections.Generic.IDictionary<string, System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType>> _packOperationTable;
2523

26-
private System.Action<MsgPack.Serialization.AbstractClassCollectionKnownType, System.Collections.ObjectModel.KeyedCollection<string, string>> this_SetUnpackedValueOfValueDelegate;
24+
private System.Collections.Generic.IDictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionKnownType, bool>> _nullCheckersTable;
2725

28-
private System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int> this_UnpackValueOfValueDelegate;
26+
private System.Action<MsgPack.Serialization.AbstractClassCollectionKnownType, System.Collections.ObjectModel.KeyedCollection<string, string>> this_SetUnpackedValueOfValueDelegate;
2927

3028
private System.Collections.Generic.IList<string> _memberNames;
3129

@@ -50,6 +48,10 @@ public MsgPack_Serialization_AbstractClassCollectionKnownTypeSerializer(MsgPack.
5048
packOperationTable = new System.Collections.Generic.Dictionary<string, System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType>>(1);
5149
packOperationTable["Value"] = new System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType>(this.PackValueOfValue);
5250
this._packOperationTable = packOperationTable;
51+
System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionKnownType, bool>> nullCheckerTable = default(System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionKnownType, bool>>);
52+
nullCheckerTable = new System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionKnownType, bool>>(1);
53+
nullCheckerTable["Value"] = new System.Func<MsgPack.Serialization.AbstractClassCollectionKnownType, bool>(this.IsValueNull);
54+
this._nullCheckersTable = nullCheckerTable;
5355
System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int>[] unpackOperationList = default(System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int>[]);
5456
unpackOperationList = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int>[1];
5557
unpackOperationList[0] = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int>(this.UnpackValueOfValue);
@@ -60,21 +62,33 @@ public MsgPack_Serialization_AbstractClassCollectionKnownTypeSerializer(MsgPack.
6062
this._unpackOperationTable = unpackOperationTable;
6163
this._memberNames = new string[] {
6264
"Value"};
63-
this.this_PackValueOfValueDelegate = new System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionKnownType>(this.PackValueOfValue);
6465
this.this_SetUnpackedValueOfValueDelegate = new System.Action<MsgPack.Serialization.AbstractClassCollectionKnownType, System.Collections.ObjectModel.KeyedCollection<string, string>>(this.SetUnpackedValueOfValue);
65-
this.this_UnpackValueOfValueDelegate = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType, int, int>(this.UnpackValueOfValue);
6666
}
6767

6868
private void PackValueOfValue(MsgPack.Packer packer, MsgPack.Serialization.AbstractClassCollectionKnownType objectTree) {
6969
this._serializer0.PackTo(packer, objectTree.Value);
7070
}
7171

72+
private bool IsValueNull(MsgPack.Serialization.AbstractClassCollectionKnownType objectTree) {
73+
return (objectTree.Value == null);
74+
}
75+
7276
protected internal override void PackToCore(MsgPack.Packer packer, MsgPack.Serialization.AbstractClassCollectionKnownType objectTree) {
77+
MsgPack.Serialization.PackToArrayParameters<MsgPack.Serialization.AbstractClassCollectionKnownType> packHelperParameters = default(MsgPack.Serialization.PackToArrayParameters<MsgPack.Serialization.AbstractClassCollectionKnownType>);
78+
packHelperParameters.Packer = packer;
79+
packHelperParameters.Target = objectTree;
80+
packHelperParameters.Operations = this._packOperationList;
81+
MsgPack.Serialization.PackToMapParameters<MsgPack.Serialization.AbstractClassCollectionKnownType> packHelperParameters0 = default(MsgPack.Serialization.PackToMapParameters<MsgPack.Serialization.AbstractClassCollectionKnownType>);
82+
packHelperParameters0.Packer = packer;
83+
packHelperParameters0.Target = objectTree;
84+
packHelperParameters0.Operations = this._packOperationTable;
85+
packHelperParameters0.SerializationContext = this.OwnerContext;
86+
packHelperParameters0.NullCheckers = this._nullCheckersTable;
7387
if ((this.OwnerContext.SerializationMethod == MsgPack.Serialization.SerializationMethod.Array)) {
74-
MsgPack.Serialization.PackHelpers.PackToArray(packer, objectTree, this._packOperationList);
88+
MsgPack.Serialization.PackHelpers.PackToArray(ref packHelperParameters);
7589
}
7690
else {
77-
MsgPack.Serialization.PackHelpers.PackToMap(packer, objectTree, this._packOperationTable);
91+
MsgPack.Serialization.PackHelpers.PackToMap(ref packHelperParameters0);
7892
}
7993
}
8094

@@ -83,7 +97,18 @@ private void SetUnpackedValueOfValue(MsgPack.Serialization.AbstractClassCollecti
8397
}
8498

8599
private void UnpackValueOfValue(MsgPack.Unpacker unpacker, MsgPack.Serialization.AbstractClassCollectionKnownType unpackingContext, int indexOfItem, int itemsCount) {
86-
MsgPack.Serialization.UnpackHelpers.UnpackReferenceTypeValue(unpacker, unpackingContext, this._serializer0, itemsCount, indexOfItem, typeof(System.Collections.ObjectModel.KeyedCollection<string, string>), "Value", MsgPack.Serialization.NilImplication.MemberDefault, null, this.this_SetUnpackedValueOfValueDelegate);
100+
MsgPack.Serialization.UnpackReferenceTypeValueParameters<MsgPack.Serialization.AbstractClassCollectionKnownType, System.Collections.ObjectModel.KeyedCollection<string, string>> unpackHelperParameters = default(MsgPack.Serialization.UnpackReferenceTypeValueParameters<MsgPack.Serialization.AbstractClassCollectionKnownType, System.Collections.ObjectModel.KeyedCollection<string, string>>);
101+
unpackHelperParameters.Unpacker = unpacker;
102+
unpackHelperParameters.UnpackingContext = unpackingContext;
103+
unpackHelperParameters.Serializer = this._serializer0;
104+
unpackHelperParameters.ItemsCount = itemsCount;
105+
unpackHelperParameters.Unpacked = indexOfItem;
106+
unpackHelperParameters.TargetObjectType = typeof(System.Collections.ObjectModel.KeyedCollection<string, string>);
107+
unpackHelperParameters.MemberName = "Value";
108+
unpackHelperParameters.NilImplication = MsgPack.Serialization.NilImplication.MemberDefault;
109+
unpackHelperParameters.DirectRead = null;
110+
unpackHelperParameters.Setter = this.this_SetUnpackedValueOfValueDelegate;
111+
MsgPack.Serialization.UnpackHelpers.UnpackReferenceTypeValue(ref unpackHelperParameters);
87112
}
88113

89114
protected internal override MsgPack.Serialization.AbstractClassCollectionKnownType UnpackFromCore(MsgPack.Unpacker unpacker) {

test/MsgPack.UnitTest.Net35/gen/MsgPack_Serialization_AbstractClassCollectionNoAttributeSerializer.cs

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ public class MsgPack_Serialization_AbstractClassCollectionNoAttributeSerializer
1717

1818
private MsgPack.Serialization.MessagePackSerializer<System.Collections.ObjectModel.KeyedCollection<string, string>> _serializer0;
1919

20-
private System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute> this_PackValueOfValueDelegate;
21-
2220
private System.Collections.Generic.IList<System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute>> _packOperationList;
2321

2422
private System.Collections.Generic.IDictionary<string, System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute>> _packOperationTable;
2523

26-
private System.Action<MsgPack.Serialization.AbstractClassCollectionNoAttribute, System.Collections.ObjectModel.KeyedCollection<string, string>> this_SetUnpackedValueOfValueDelegate;
24+
private System.Collections.Generic.IDictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionNoAttribute, bool>> _nullCheckersTable;
2725

28-
private System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int> this_UnpackValueOfValueDelegate;
26+
private System.Action<MsgPack.Serialization.AbstractClassCollectionNoAttribute, System.Collections.ObjectModel.KeyedCollection<string, string>> this_SetUnpackedValueOfValueDelegate;
2927

3028
private System.Collections.Generic.IList<string> _memberNames;
3129

@@ -46,6 +44,10 @@ public MsgPack_Serialization_AbstractClassCollectionNoAttributeSerializer(MsgPac
4644
packOperationTable = new System.Collections.Generic.Dictionary<string, System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute>>(1);
4745
packOperationTable["Value"] = new System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute>(this.PackValueOfValue);
4846
this._packOperationTable = packOperationTable;
47+
System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionNoAttribute, bool>> nullCheckerTable = default(System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionNoAttribute, bool>>);
48+
nullCheckerTable = new System.Collections.Generic.Dictionary<string, System.Func<MsgPack.Serialization.AbstractClassCollectionNoAttribute, bool>>(1);
49+
nullCheckerTable["Value"] = new System.Func<MsgPack.Serialization.AbstractClassCollectionNoAttribute, bool>(this.IsValueNull);
50+
this._nullCheckersTable = nullCheckerTable;
4951
System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int>[] unpackOperationList = default(System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int>[]);
5052
unpackOperationList = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int>[1];
5153
unpackOperationList[0] = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int>(this.UnpackValueOfValue);
@@ -56,21 +58,33 @@ public MsgPack_Serialization_AbstractClassCollectionNoAttributeSerializer(MsgPac
5658
this._unpackOperationTable = unpackOperationTable;
5759
this._memberNames = new string[] {
5860
"Value"};
59-
this.this_PackValueOfValueDelegate = new System.Action<MsgPack.Packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute>(this.PackValueOfValue);
6061
this.this_SetUnpackedValueOfValueDelegate = new System.Action<MsgPack.Serialization.AbstractClassCollectionNoAttribute, System.Collections.ObjectModel.KeyedCollection<string, string>>(this.SetUnpackedValueOfValue);
61-
this.this_UnpackValueOfValueDelegate = new System.Action<MsgPack.Unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute, int, int>(this.UnpackValueOfValue);
6262
}
6363

6464
private void PackValueOfValue(MsgPack.Packer packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute objectTree) {
6565
this._serializer0.PackTo(packer, objectTree.Value);
6666
}
6767

68+
private bool IsValueNull(MsgPack.Serialization.AbstractClassCollectionNoAttribute objectTree) {
69+
return (objectTree.Value == null);
70+
}
71+
6872
protected internal override void PackToCore(MsgPack.Packer packer, MsgPack.Serialization.AbstractClassCollectionNoAttribute objectTree) {
73+
MsgPack.Serialization.PackToArrayParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute> packHelperParameters = default(MsgPack.Serialization.PackToArrayParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute>);
74+
packHelperParameters.Packer = packer;
75+
packHelperParameters.Target = objectTree;
76+
packHelperParameters.Operations = this._packOperationList;
77+
MsgPack.Serialization.PackToMapParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute> packHelperParameters0 = default(MsgPack.Serialization.PackToMapParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute>);
78+
packHelperParameters0.Packer = packer;
79+
packHelperParameters0.Target = objectTree;
80+
packHelperParameters0.Operations = this._packOperationTable;
81+
packHelperParameters0.SerializationContext = this.OwnerContext;
82+
packHelperParameters0.NullCheckers = this._nullCheckersTable;
6983
if ((this.OwnerContext.SerializationMethod == MsgPack.Serialization.SerializationMethod.Array)) {
70-
MsgPack.Serialization.PackHelpers.PackToArray(packer, objectTree, this._packOperationList);
84+
MsgPack.Serialization.PackHelpers.PackToArray(ref packHelperParameters);
7185
}
7286
else {
73-
MsgPack.Serialization.PackHelpers.PackToMap(packer, objectTree, this._packOperationTable);
87+
MsgPack.Serialization.PackHelpers.PackToMap(ref packHelperParameters0);
7488
}
7589
}
7690

@@ -79,7 +93,18 @@ private void SetUnpackedValueOfValue(MsgPack.Serialization.AbstractClassCollecti
7993
}
8094

8195
private void UnpackValueOfValue(MsgPack.Unpacker unpacker, MsgPack.Serialization.AbstractClassCollectionNoAttribute unpackingContext, int indexOfItem, int itemsCount) {
82-
MsgPack.Serialization.UnpackHelpers.UnpackReferenceTypeValue(unpacker, unpackingContext, this._serializer0, itemsCount, indexOfItem, typeof(System.Collections.ObjectModel.KeyedCollection<string, string>), "Value", MsgPack.Serialization.NilImplication.MemberDefault, null, this.this_SetUnpackedValueOfValueDelegate);
96+
MsgPack.Serialization.UnpackReferenceTypeValueParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute, System.Collections.ObjectModel.KeyedCollection<string, string>> unpackHelperParameters = default(MsgPack.Serialization.UnpackReferenceTypeValueParameters<MsgPack.Serialization.AbstractClassCollectionNoAttribute, System.Collections.ObjectModel.KeyedCollection<string, string>>);
97+
unpackHelperParameters.Unpacker = unpacker;
98+
unpackHelperParameters.UnpackingContext = unpackingContext;
99+
unpackHelperParameters.Serializer = this._serializer0;
100+
unpackHelperParameters.ItemsCount = itemsCount;
101+
unpackHelperParameters.Unpacked = indexOfItem;
102+
unpackHelperParameters.TargetObjectType = typeof(System.Collections.ObjectModel.KeyedCollection<string, string>);
103+
unpackHelperParameters.MemberName = "Value";
104+
unpackHelperParameters.NilImplication = MsgPack.Serialization.NilImplication.MemberDefault;
105+
unpackHelperParameters.DirectRead = null;
106+
unpackHelperParameters.Setter = this.this_SetUnpackedValueOfValueDelegate;
107+
MsgPack.Serialization.UnpackHelpers.UnpackReferenceTypeValue(ref unpackHelperParameters);
83108
}
84109

85110
protected internal override MsgPack.Serialization.AbstractClassCollectionNoAttribute UnpackFromCore(MsgPack.Unpacker unpacker) {

0 commit comments

Comments
 (0)