Re: [edk2] [RFC v2 1/2] BaseTool/VfrCompile: Support Union type in VFR

2017-06-05 Thread Bi, Dandan
Hi Ray, Thanks for your comments! Yes, we also can avoid using member variable. Based on my understanding, we can parse value to sub-statement. So when parsing a Struct/Union type, it can pass this info to its member fields , then we can detect whether current Data Type is Struct or Union. In

Re: [edk2] [RFC v2 1/2] BaseTool/VfrCompile: Support Union type in VFR

2017-06-05 Thread Ni, Ruiyu
Dandan, Is it possible to avoid adding IsUnion member variable? I remember .G syntax supports passing value to sub-statement. In this case, can you use: vfrDataStructFields [IsUnion]? Thanks/Ray > -Original Message- > From: Bi, Dandan > Sent: Monday, June 5, 2017 12:31 PM > To:

[edk2] [RFC v2 1/2] BaseTool/VfrCompile: Support Union type in VFR

2017-06-04 Thread Dandan Bi
V2: Update VfrCompiler to use member variable instead of global varable to indicate whether current date type is Union. Cc: Eric Dong Cc: Liming Gao Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0