Johnni Winther
|
4efcda0fd2
|
[cfe] Generate statements for trivial pattern assignments
Closes #52960
Change-Id: I868a7ef5867ad955072ae5425da82c007ca1d73c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/315902
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
|
2023-07-28 11:11:37 +00:00 |
|
Johnni Winther
|
36641368bb
|
[cfe] Treat NonNullableByDefault as default in ast-to-text
This changes ast-to-text to mark legacy libraries instead of
non-nullable-by-default libraries.
TEST=existing
Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
|
2023-06-08 06:28:50 +00:00 |
|
Johnni Winther
|
d16118c4d1
|
[cfe] Delay assignment in pattern assignment until after matching
Closes #51861
Change-Id: I5681bdf8198c676599daca79910b066fa18c283b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291541
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
|
2023-03-29 12:17:32 +00:00 |
|
Chloe Stefantsova
|
f27548aa5a
|
[cfe] Coerce expressions in pattern assignment and declaration RHS
Closes https://github.com/dart-lang/sdk/issues/51738
Part of https://github.com/dart-lang/sdk/issues/49749
Change-Id: I4d496c303b1762c7234d66436daf125e69a34316
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291068
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
|
2023-03-27 10:01:53 +00:00 |
|
Chloe Stefantsova
|
628ba2ac64
|
[cfe] Use StateError as the pattern matching error in assignments
Part of https://github.com/dart-lang/sdk/issues/49749
Change-Id: I9c4fb121526ca40e5809be8f4a8a5770d551cfb1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291063
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
|
2023-03-24 11:30:57 +00:00 |
|
Johnni Winther
|
a6d23ad697
|
[cfe] Skip lookups for wildcards in list patterns
Closes #51771
Change-Id: I1b79beb1df3c5d9c35e109505a04f51926db679d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289603
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
|
2023-03-23 17:53:30 +00:00 |
|
Johnni Winther
|
04e6f4c282
|
[kernel] Add VariableDeclaration.isSynthesized
This adds an [isSynthesized] flag to the [VariableDeclaration] the
signal when the variable doesn't correspond to a variable in the
source code.
The name of a variable can only be `null` if it is synthesized.
Partially in response to
https://github.com/dart-lang/sdk/issues/51554
TEST=existing
Change-Id: I94591971f11da09d210c8b25a2d05e22ca05dc62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286961
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
|
2023-03-10 11:13:36 +00:00 |
|
Johnni Winther
|
0aff070607
|
[cfe] Report pattern assignment of non-variables
Change-Id: Ieed7be9ec7e75e64f6f24f729e6211a0a4689c3a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280722
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
|
2023-02-03 12:47:28 +00:00 |
|