File tree 1 file changed +33
-2
lines changed
code-generation/protocol-test/src/main/resources/protocols/test
1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 212
212
]
213
213
]
214
214
215
+ // Check field with arguments
216
+ [ type Struct ( bit signed , bit unsigned )
217
+ [ typeSwitch signed
218
+ [ 'true' SignedType
219
+ [ simple int 8 data ]
220
+ ]
221
+ [ 'false' UnsignedType
222
+ [ simple uint 8 data ]
223
+ ]
224
+ ]
225
+ ]
226
+
227
+ [ type StructContainer
228
+ [ simple bit signed ]
229
+ [ simple Struct ( 'signed' , '!signed' ) struct ]
230
+ ]
231
+
215
232
// TODO : So far only trouble in GO , C seems OK .
216
233
[ type VirtualFieldTest
217
234
[ simple uint 8 simpleField ]
475
492
// TypeSwitch in TypeSwitch
476
493
/ /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// ///
477
494
478
- /* Needs to be ported to C and GO
495
+ /* Needs to be ported to C and GO */
479
496
[ discriminatedType TypeSwitchInTypeSwitchParentType
480
497
[ discriminator uint 8 typeNumber ]
481
498
[ simple uint 8 parentFieldHurz ]
535
552
]
536
553
]
537
554
]
538
- ] */
555
+ ]
556
+
557
+ [ discriminatedType TypeSwitchWithArg ( bit arg1 , uint 8 arg2 )
558
+ [ abstract bit isItTrue ]
559
+ [ simple uint 8 value ]
560
+ [ typeSwitch arg1
561
+ [ 'true' TrustfulTypeSwitch ( uint 8 value )
562
+ [ virtual bit isItTrue 'true' ]
563
+ ]
564
+ [ 'false' UnTrustfulTypeSwitch ( uint 8 value )
565
+ [ virtual bit isItTrue 'false' ]
566
+ ]
567
+ ]
568
+ ]
569
+
539
570
540
571
// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// //
541
572
/ / Missing Tests
You can’t perform that action at this time.
0 commit comments