-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 1125460
[vm,dyn_modules] Allow desugared const constructors.
The front end may desugar some const constructors into procedures, so be
less strict with what is expected in the list of const constructors.
Also updates SourceReport to check all Functions with is_const() true
against the collected const constructor hits and not just Constructors.
TEST=ci
Fixes: #61947
Cq-Include-Trybots: luci.dart.try:vm-dyn-linux-debug-x64-try,vm-dyn-mac-debug-arm64-try
Change-Id: I092938eeeb0459de9b3d95400a538ec6528c43fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462442
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>1 parent 52fb3eb commit 1125460
File tree
3 files changed
+6
-3
lines changed- pkg/dart2bytecode/lib
- runtime/vm
3 files changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | + | ||
231 | + | ||
230 | 232 | | |
231 | 233 | | |
232 | - | ||
234 | + | ||
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | - | ||
337 | + | ||
338 | + | ||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | - | ||
344 | + | ||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
0 commit comments