c0c3fc4c5f
This adds a method to the internal SDK runtime library that can be called to clear state when a hot restart is desired. This also refactors some of the logic around ignoring type errors, as we need to ensure we can clear those caches. Also I noticed a bug where the result of isSubtypeOf was assumed to be non-null, but this was not the case. The new structure should make this more clear. (Note: I think we may be able to remove a lot of the code for ignoring type errors soon.) Change-Id: Icf5072ffe21aefd85e9816ffc2fc29f679839bc4 Reviewed-on: https://dart-review.googlesource.com/c/78324 Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Jenny Messerly <jmesserly@google.com>