Skip to content

Move toString removal transformation before tree shaking #46022

@alexmarkov

Description

@alexmarkov

Since https://dart-review.googlesource.com/c/sdk/+/199200/ tree shaker removes annotations in AOT mode. Flutter toString() removal transformation currently runs after tree shaking but relies on @keepToString annotations which are already removed by that moment.

We should consider running toString removal before tree shaking to make sure it still sees annotations.

Internal bug: b/187962467

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions