91af82981b
Replace the hand-written header flag formatting for elements and fragments with writeHeaderFlags(...flagsForTesting). This makes the printed output come from the same generated flag definitions as the element model instead of maintaining separate lists of writeIf calls. Mark computed element flags such as hasDefaultValue, hasInitializer, and hasNonFinalField in the generated metadata, and add the missing generated overrides needed to expose them through flagsForTesting. This also lets the shared path report flags such as isSimplyBounded and hasEnclosingTypeParameterReference consistently. Because hasNonFinalField now needs to round-trip through bundles for enums, update the bundle reader and writer and bump the data version. Change-Id: I7c126fe4bc69fd6b191f339ddc420b05cd8b5ee7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/495860 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>