You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[record_use] Implementation: JSON: Definition loading unit should be removed #2986
This doesn't really make sense. Instead we should say a definition has uses, and a definition ends up in a loading unit, two different maps. (And the Dart API should probably reflect that too: Two different queries: give me the calls to this definition, and give me the loading unit this definition ended up in.)
changed the title [-][record_use] Implementation: JSON: The loading unit[/-][+][record_use] Implementation: JSON: Definition loading unit should be on the side[/+]on Jan 20, 2026
changed the title [-][record_use] Implementation: JSON: Definition loading unit should be on the side[/-][+][record_use] Implementation: JSON: Definition loading unit should be removed[/+]on Jan 28, 2026
Definition loading units are not useful in the dart2js situation. If you have two calls from different loading units, you want to postpone loading the asset until one of those two loading units is loaded, not in the loading unit that is dominating those two loading units. (dart2js will use the cached asset when the second loading unit is loaded.)
So, a link hook outputting assets should then output a list of loading units an asset is used in.
Whether to package an asset in the dominating loading unit could be a decision of the SDK/embedder. Flutter might actually prefer shipping an asset in the dominating loading unit.
Activity
[-][record_use] Implementation: JSON: The loading unit[/-][+][record_use] Implementation: JSON: Definition loading unit should be on the side[/+][-][record_use] Implementation: JSON: Definition loading unit should be on the side[/-][+][record_use] Implementation: JSON: Definition loading unit should be removed[/+]dcharkes commentedon Jan 28, 2026
Notes from discussion with @biggs0125:
[record_use] Remove definition loading unit (dart-lang#3061)
[record_use] Stop recording definition loading units
[record_use] Remove definition loading unit (dart-lang#3061)
[record_use] Remove definition loading unit (dart-lang#3061)
Squashed commit of the following: