ac039abc83
This CL adds an option to the dill loader (i.e. BinaryBuilder) to enable performing a check of all canonical names. The theory is, that if a dill is self-contained "every" (1) canonical name should contain a reference to a node. This check is (currently) disabled by default, but enabled excplicitly in the incremental compiler when initializing from dill. If the check fails a warning will be issued (and the dill wont be used). On my machine the check seems to take ~15 ms in all tested cases (sdk, flutter test). (1): Except for extra layer of URI of a library if the qualified name is private. Closes #32449. Change-Id: I65c8fba647be3d5ba47f7ee16caef78cb2cfae07 Reviewed-on: https://dart-review.googlesource.com/51462 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com>