Skip to content

Commit b555007

Browse files
committed
Update verified snapshot files after changes from updating Verify library.
1 parent dc41648 commit b555007

File tree

74 files changed

+568446
-284321
lines changed

Some content is hidden

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

74 files changed

+568446
-284321
lines changed

src/NHapi.SourceGeneration/Generators/GroupGenerator.cs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,9 @@ public static GroupDef GetGroupDef(
137137
string version,
138138
string message)
139139
{
140-
GroupDef ret;
141140
var required = true;
142141
var repeating = false;
143-
var rep_opt = false;
142+
var repOpt = false;
144143

145144
var len = structures.Length;
146145
var shortList = new IStructureDef[len]; // place to put final list of groups/segments w/o opt & rep markers
@@ -162,7 +161,7 @@ public static GroupDef GetGroupDef(
162161

163162
if (RepoptMarkers(structures[0].Name, structures[len - 1].Name) && (FindGroupEnd(structures, 0) == len - 1))
164163
{
165-
rep_opt = true;
164+
repOpt = true;
166165
}
167166

168167
if (repeating || !required)
@@ -190,7 +189,7 @@ public static GroupDef GetGroupDef(
190189
skip++;
191190
}
192191

193-
if (rep_opt)
192+
if (repOpt)
194193
{
195194
skip++;
196195
}
@@ -237,14 +236,9 @@ public static GroupDef GetGroupDef(
237236
ErrorCode.APPLICATION_INTERNAL_ERROR);
238237
}
239238

240-
if (rep_opt)
241-
{
242-
ret = new GroupDef(message, groupName, false, true, "a Group object");
243-
}
244-
else
245-
{
246-
ret = new GroupDef(message, groupName, required, repeating, "a Group object");
247-
}
239+
var ret = repOpt
240+
? new GroupDef(message, groupName, false, true, "a Group object")
241+
: new GroupDef(message, groupName, required, repeating, "a Group object");
248242

249243
var finalList = new IStructureDef[currShortListPos]; // note: incremented after last assignment
250244
Array.Copy(shortList, 0, finalList, 0, currShortListPos);
@@ -412,9 +406,9 @@ public static string MakeAccessor(GroupDef group, int structure)
412406
var indexName = group.GetIndexName(name);
413407
var getterName = indexName;
414408

415-
if (def is GroupDef)
409+
if (def is GroupDef groupDef)
416410
{
417-
var unqualifiedName = ((GroupDef)def).UnqualifiedName;
411+
var unqualifiedName = groupDef.UnqualifiedName;
418412
getterName = group.GetIndexName(unqualifiedName);
419413
}
420414

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_21.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V21\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V21\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V21\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V21\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V21\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V21\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V21\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V21\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V21\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V21\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_22.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V22\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V22\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V22\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V22\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V22\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V22\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V22\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V22\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V22\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V22\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_23.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V23\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V23\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V23\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V23\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V23\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V23\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V23\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V23\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V23\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V23\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_231.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V231\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V231\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V231\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V231\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V231\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V231\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V231\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V231\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V231\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V231\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_24.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V24\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V24\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V24\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V24\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V24\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V24\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V24\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V24\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V24\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V24\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_25.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V25\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V25\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V25\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V25\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V25\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V25\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V25\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V25\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V25\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V25\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

tests/NHapi.NUnit.SourceGeneration/Generators/BaseDataTypeGeneratorTests.BuildBaseDataTypes_GeneratesBaseDataTypes_251.verified.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
basepath\\NHapi.Model.V251\\Datatype\\DT.cs:
2+
basepath\NHapi.Model.V251\Datatype\DT.cs:
33
using System;
44

55
using NHapi.Base.Model;
@@ -40,7 +40,7 @@ public class DT: NHapi.Base.Model.Primitive.DT
4040
}
4141
}
4242
,
43-
basepath\\NHapi.Model.V251\\Datatype\\ID.cs:
43+
basepath\NHapi.Model.V251\Datatype\ID.cs:
4444
using System;
4545

4646
using NHapi.Base.Model;
@@ -83,7 +83,7 @@ public class ID: NHapi.Base.Model.Primitive.ID
8383
}
8484
}
8585
,
86-
basepath\\NHapi.Model.V251\\Datatype\\IS.cs:
86+
basepath\NHapi.Model.V251\Datatype\IS.cs:
8787
using System;
8888

8989
using NHapi.Base.Model;
@@ -126,7 +126,7 @@ public class IS: NHapi.Base.Model.Primitive.IS
126126
}
127127
}
128128
,
129-
basepath\\NHapi.Model.V251\\Datatype\\ST.cs:
129+
basepath\NHapi.Model.V251\Datatype\ST.cs:
130130
using System;
131131

132132
using NHapi.Base.Model;
@@ -167,7 +167,7 @@ public class ST: AbstractPrimitive
167167
}
168168
}
169169
,
170-
basepath\\NHapi.Model.V251\\Datatype\\TM.cs:
170+
basepath\NHapi.Model.V251\Datatype\TM.cs:
171171
using System;
172172

173173
using NHapi.Base.Model;

0 commit comments

Comments
 (0)