Skip to content

Enhance kernel AST verifier to detect dangling references #59755

Open
@alexmarkov

Description

@alexmarkov

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.cfe-testingIssues related to testing of the CFE.legacy-area-front-endLegacy: Use area-dart-model instead.triagedIssue has been triaged by sub teamtype-code-healthInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainabletype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions