75aea30724
The new implementation uses the same API as flow analysis. This should allow us to significantly simplify the CFE and analyzer, by dropping their implementations of legacy type promotion in favor of the shared implementation. This CL just introduces the new implementation and unit tests for it; it does not integrate it with the analyzer or CFE. I will follow up with a CL that does the integration. Change-Id: Ie07b3b39604d6a022ad42f3ae6b648a317c8af28 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179560 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>