mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
45033c6ad9
Change Expression.getStaticType to take a StaticTypeContext instead of a TypeEnvironment. The StaticTypeContext provides access to the TypeEnvironment and the current 'this type' as well as determining the nullability state of the enclosing library. This change is needed to support nnbd types for getStaticType and also serves as a step towards supporting caching during static type computations to avoid repeated computations of the same (complex) expressions. Change-Id: Ied974dff7f6f7c3c8f262aa80c8dea5c674662f7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124683 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> |
||
---|---|---|
.. | ||
angular | ||
co19_2 | ||
compiler | ||
corelib_2 | ||
dart | ||
ffi | ||
kernel | ||
language_2 | ||
lib_2 | ||
modular | ||
search | ||
standalone_2 | ||
legacy_status_dart2js.csv | ||
light_unittest.dart | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.