78f2e16cc9
This adds `asInstanceOf` to `StaticType`, which tries to find the instantiation of a given class so that a `StaticType` becomes a subtype of it. To actually make use of that data, the definition of `NamedStaticType` is expanded to contain information about the resolved type identifier and the type arguments instantiating the class. Change-Id: I4f7b05d9e44f5228863ef875545286b5cd7f9a41 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/348920 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Morgan :) <davidmorgan@google.com>