@@ -16,10 +16,31 @@ constraint][language version] lower bound to 3.9 or greater (`sdk: '^3.9.0'`).
1616
1717#### Analyzer
1818
19+ - The [ dart command-line tool] [ ] commands that use the analysis server now run
20+ the AOT-compiled analysis server snapshot. These include ` dart analyze ` ,
21+ ` dart fix ` , and ` dart language-server ` .
22+
23+ There is no functional difference when using the AOT-compiled analysis server
24+ snapshot. But various tests indicate that there is a significant speedup in
25+ the time to analyze a project.
26+
27+ In case of an incompatibility with the AOT-compiled snapshot, a
28+ ` --no-use-aot-snapshot ` flag may be passed to these commands. (Please file an
29+ issue with the appropriate project if you find that you need to use this
30+ flag! It will be removed in the future.) This flag directs the tool to revert
31+ to the old behavior, using the JIT-compiled analysis server snapshot. To
32+ direct the Dart Code plugin for VS Code to pass this flag, use the
33+ [ ` dart.analyzerAdditionalArgs ` ] [ vs-code-args ] setting. To direct the Dart
34+ IntelliJ plugin to pass this flag, use the ` dart.server.additional.arguments `
35+ registry property, similar to [ these steps] [ intellij-args ] .
36+
1937- Add the [ ` switch_on_type ` ] [ ] lint rule.
2038- Add the [ ` unnecessary_unawaited ` ] [ ] lint rule.
2139- Add an assist to convert a field formal parameter to a normal parameter.
2240
41+ [ dart command-line tool ] : https://dart.dev/tools/dart-tool
42+ [ vs-code-args ] : https://dartcode.org/docs/settings/#dartanalyzeradditionalargs
43+ [ intellij-args ] : https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/doc/tutorial/instrumentation.md#intellij-idea-and-android-studio
2344[ `switch_on_type` ] : http://dart.dev/lints/switch_on_type
2445[ `unnecessary_unawaited` ] : http://dart.dev/lints/unnecessary_unawaited
2546
0 commit comments