Commit f610946
Fine. Verify RequirementsManifest serialization round-trip.
Add `assertSerialization()` to `RequirementsManifest` to perform a
byte-for-byte round trip (write -> read -> write) and ensure a canonical
binary form.
Insert debug assertions in the analysis driver and library context to
validate manifests after updates when fine-grained dependencies are
used.
Import `dart:typed_data` and `package:collection/collection.dart` for
serialization buffers and byte list equality.
Motivation: enforce deterministic encoding to stabilize caches and
dependency signatures. No effect in release builds (asserts stripped).
Change-Id: I1f3b6342df8688c7cae00cf61634efe0cfd7c44a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/444500
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>1 parent ed1d4a5 commit f610946
File tree
3 files changed
+30
-0
lines changed- pkg/analyzer/lib/src
- dart/analysis
- fine
3 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
| 1386 | + | |
1386 | 1387 | | |
1387 | 1388 | | |
1388 | 1389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
413 | 416 | | |
414 | 417 | | |
415 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
416 | 444 | | |
417 | 445 | | |
418 | 446 | | |
| |||
0 commit comments