internal static void Dump(AssistantDumper assistant, ChildViaSettings value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package4.ChildViaSettings", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("__parent_0__"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.Package3.ParentDumper.Dump(assistant, value, true/*withSeparator*/); assistant.Add("Prop1", value.Prop1); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, Child value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("CSharpRefImpl.CSharpModel.Package4.Child", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("__parent_0__"); assistant.AddPairSeparator(); CSharpRefImpl.CSharpModel.Package3.ParentDumper.Dump(assistant, value, true /*withSeparator*/); assistant.Add("Prop1", value.Prop1); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, AssociationInPackage value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package1.AssociationInPackage", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("Prop0"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.PrimitiveBuiltinsDumper.Dump(assistant, value.Prop0, true /*withSeparator*/); assistant.AddKey("Prop1"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ComplexBuiltinsDumper.Dump(assistant, value.Prop1, true /*withSeparator*/); assistant.AddKey("Prop2"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.Package1.Class1Dumper.Dump(assistant, value.Prop2); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, TestType value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Phi.TestType", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("Version"); assistant.AddPairSeparator(); Zeta.StringDumper.Dump(assistant, value.Version, true /*withSeparator*/); assistant.AddKey("AField"); assistant.AddPairSeparator(); Zeta.StringDumper.Dump(assistant, value.AField); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
internal static void Dump(AssistantDumper assistant, AssociationInPackage value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package1.AssociationInPackage", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("Prop0"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.PrimitiveBuiltinsDumper.Dump(assistant, value.Prop0, true/*withSeparator*/); assistant.AddKey("Prop1"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.ComplexBuiltinsDumper.Dump(assistant, value.Prop1, true/*withSeparator*/); assistant.AddKey("Prop2"); assistant.AddPairSeparator(); Dogen.TestModels.CSharpModel.Package1.Class1Dumper.Dump(assistant, value.Prop2); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, CollectionTestType value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Phi.CollectionTestType", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddKey("BinariesTest"); assistant.AddPairSeparator(); System.Collections.Generic.ArrayDumper.Dump(assistant, value.BinariesTest); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, Class2 value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("CSharpRefImpl.DirectorySettings.Package00.Package01.Class2", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, Parent value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Package2.Parent", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Prop0", value.Prop0); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Dump(AssistantDumper assistant, NoFields value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Phi.NoFields", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }