78abb98ee7
In package-split mode, bytecode generation is performed separately for each package. Previously, dropping AST was done right after generating bytecode. However, dropping AST for a package makes it impossible to do constant evaluation in other packages which import the package with dropped AST. This breaks bytecode generation for subsequent packages. To work around this problem, in package-split mode AST is removed temporary until dillp file is written. After that, removed AST is restored back. Change-Id: I3d8b6a8ad98f2fe88b57f7b6393bbbe87b046c21 Reviewed-on: https://dart-review.googlesource.com/c/89822 Auto-Submit: Alexander Markov <alexmarkov@google.com> Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>