Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cfe] Use exhaustive switch in isSubtypeOf
This CL uses exhaustive switch statement instead of chained if statements in the implementation of isSubtypeOf. In addition to that, all of the individual methods for computing isSubtypeOf for specific pairs of DartTypes are inlined into the switch statement. Change-Id: I425e8d415d07767313c6f1ff796f7715e35f10bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382000 Commit-Queue: Chloe Stefantsova <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
- Loading branch information