pdl: create ‘Field’ enum to hold field logic
I’ll slowly be moving over functionality to this new enum and its variants. While this might seem like a lot of boiler-plate, this simplifies the code overall since structs like ‘ScalarField’ know exactly what type they are. So we’ll have fewer redundant match expressions after this. Test: atest pdl_tests pdl_inline_tests (cherry picked from https://android-review.googlesource.com/q/commit:a30186d5e73d0ef6db707ff567386cfe754f6055) Merged-In: Ib9147d4899944e74d2e06bd41e3adc832f89e802 Change-Id: Ib9147d4899944e74d2e06bd41e3adc832f89e802
Loading
Please register or sign in to comment