Enhance kernel AST verifier to detect dangling references #59755
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cfe-testing
Issues related to testing of the CFE.
triaged
Issue has been triaged by sub team
type-code-health
Internal changes to our tools and workflows to make them cleaner, simpler, or more maintainable
type-enhancement
A request for a change that isn't a bug
Kernel AST verifier (pkg/kernel/lib/verifier.dart) can collect/mark all AST nodes which are directly reachable from
Component
and then check that all references within AST point to the reachable nodes. This would ensure there are no dangling references in the AST and would allow us to catch various bugs related to the incorrect tree-shaking earlier (currently such bugs show up only after kernel is serialized and then deserialized).The text was updated successfully, but these errors were encountered: