-
Notifications
You must be signed in to change notification settings - Fork 1.7k
move dartdevc off analyzer task model #35013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@JekCharlsonYu - we're hoping to cherry-pick this fix for 2.1. It fixes some issues @yjbanov hit on new mixins. |
@jmesserly has fix she's testing now. |
I'm testing this CL: https://dart-review.googlesource.com/c/sdk/+/82469. I may need to update a more status entries, but otherwise I think it's in good shape. edit: CL out for review. |
@jmesserly - how is this looking? |
I believe we can land CL https://dart-review.googlesource.com/c/sdk/+/82469 but I'll need to keep working on the debugger extension console (an internal test failing -- though it was already failing from an unrelated command line options change). |
Original commit message: [dartdevc] fix #35013, move DDC off Analyzer task model The new file pkg/dev_compiler/lib/src/analyzer/driver.dart handles building the linked summary for a build unit, and then is capable of doing analysis using LibraryAnalyzer. The algorithm is very similar to analyzer_cli's build mode. The biggest difference is that `dartdevc` has existing support for discovering source files from the explicit source list (rather than requiring every source to be listed on the command line). We don't want to break that support, so there's a bit of logic to follow imports, exports, and parts. After the linked summary is produced, DDC gets the analysis results (errors and resolved AST) for each library, and compiles it into a JS module. Change-Id: I8d1855c27f9976cad6fd9ccb567b75a613e6048c Reviewed-on: https://dart-review.googlesource.com/c/83060 Commit-Queue: Paul Berry <[email protected]> Auto-Submit: Paul Berry <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
The new file pkg/dev_compiler/lib/src/analyzer/driver.dart handles building the linked summary for a build unit, and then is capable of doing analysis using LibraryAnalyzer. The algorithm is very similar to analyzer_cli's build mode. The biggest difference is that `dartdevc` has existing support for discovering source files from the explicit source list (rather than requiring every source to be listed on the command line). We don't want to break that support, so there's a bit of logic to follow imports, exports, and parts. After the linked summary is produced, DDC gets the analysis results (errors and resolved AST) for each library, and compiles it into a JS module. Change-Id: I7bf1ce1eca73fd036002e498de5924c488b534dc Reviewed-on: https://dart-review.googlesource.com/c/82469 Commit-Queue: Jenny Messerly <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Vijay Menon <[email protected]>
See #33546
Also, Analyzer task model has incorrect results for some things (e.g. mixin type arguments, top-level inference) and users are hitting these.
The text was updated successfully, but these errors were encountered: