d42390d7c1
Previously, the logic for enabling and disabling language features in flow analysis and type inference tests relied on setters in the `Harness` class that (a) were mostly unmatched with getters, and (b) were almost exclusively used in just a single one direction (e.g. `Harness.legacy` defaulted to `true`, so it was only ever set to `false`). Cleaned up so that there are explicit `enable` and `disable` methods in the `Harness` class to cover all the use cases. Change-Id: I5ccc8585f803fec634cad1472395ea0d135c87c6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332064 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com>