dart-sdk/pkg/analyzer/lib
Johnni Winther a811db5bc6 [cfe] Change MapPattern.key to Expression
The key can only be an Expression but was unneedingly wrapped in
a ConstantPattern. Since the shared type analysis only handles
map pattern keys as expressions, the expected properties of
ConstantPattern were not set. Amongst these were the static type
of the key expression, which is know passed directly to the
handleMapPatternEntry method.

Change-Id: I705fc655e440d534ccc442c9c1359c377955b3b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/288282
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-03-13 10:05:16 +00:00
..
dart Add 'get sinceSdkVersion' to Element. 2023-03-08 20:29:57 +00:00
diagnostic Breaking changes for analyzer version 5.0.0 2022-09-07 16:27:18 +00:00
error [analyzer] Report an error when a subtype of a base or final type is not base, final or sealed. 2023-03-01 19:01:59 +00:00
exception Enforce use_super_parameters in analyzer/. 2022-05-19 19:36:41 +00:00
file_system [analysis_server] Don't endlessly rebuild analysis contexts on PathNotFound errors 2023-02-28 20:27:43 +00:00
instrumentation [analysis_server] Exclude instrumentation log file from logged watch events to prevent loops 2022-12-12 20:09:36 +00:00
source [analyzer] Add a valueOrThrow extension similar to our oft-used typeOrThrow 2023-01-03 18:53:39 +00:00
src [cfe] Change MapPattern.key to Expression 2023-03-13 10:05:16 +00:00
fix_data.yaml Deprecate buildSdkSummary2(), use buildSdkSummary() instead. 2022-10-24 22:32:48 +00:00