CHANGELOG: Add analyzer entries; organize

Change-Id: I11f340704b2e393c53c611f52accadea6d665dea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/419241
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins
2025-04-01 09:27:15 -07:00
committed by Commit Queue
parent 007bd5d6c0
commit aa21742d03
+17 -12
View File
@@ -29,23 +29,13 @@
#### Analyzer
- Add the experimental [`unnecessary_ignore`][] lint rule.
- Offer additional assist to wrap a Flutter widget with a `FutureBuilder` widget.
- Add a quick assist for Wrap with ValueListenableBuilder.
- The quick fix that adds names to a 'show' combinator or removes names from a
'hide' combinator can now add or remove multiple names simultaneously, in
order to resolve as many "undefined" errors as possible.
- Renaming a closure parameter is now possible, and will adjust implicit 'this'
references in order to avoid name collisions.
- Renaming a field now adjusts implicit 'this' references in order to avoid
name collisions.
- The "encapsulate field" quick assist now works on final fields.
- The "inline method" refactoring now properly handles inner closures.
- Code completion is improved to offer more valid suggestions. In particular,
the suggestions are improved when completing text in a comment reference on a
documentation comment for an extension, a typedef, or a directive (an import,
an export, or a library). Additionally, instance members can now be suggested
in a documentation comment reference.
- Offer additional assist to wrap a Flutter widget with a `FutureBuilder` widget.
- Add a quick assist to wrap with `ValueListenableBuilder`.
- Add a quick fix to convert an (illegal) extension field declaration into a
getter declaration.
- Add a quick fix to help code comply with a few lint rules that encourage
@@ -53,9 +43,17 @@
`omit_obvious_local_variable_types`, and `omit_obvious_property_types`.
- Add a quick fix to create an extension method to resolve an "undefined method
invocation" error.
- Renaming a closure parameter is now possible.
- Renaming a field now adjusts implicit 'this' references in order to avoid
name collisions.
- Renaming a field formal parameter now properly renames known super-parameters
in subclasses in other libraries.
- Renaming a method parameter now properly renames across the type hierarchy.
- The "encapsulate field" quick assist now works on final fields.
- The "inline method" refactoring now properly handles inner closures.
- The quick fix that adds names to a `show` combinator or removes names from a
'hide' combinator can now add or remove multiple names simultaneously, in
order to resolve as many "undefined" errors as possible.
- The "remove const" quick fix now operates on more types of code.
- The "add missing required argument" quick fix can now add multiple missing
required arguments.
@@ -63,6 +61,13 @@
'show' or 'hide' combinators, which are never necessary.
- Add a quick fix for this warning.
- Add LSP document links for lint rules in analysis options files.
- Add LSP document links for dependency packages in pubspec files.
- Fix various issues around patterns, like highlighting, navigation, and
autocompletion.
- Add the experimental [`unnecessary_ignore`][] lint rule.
- Add the [`switch_on_runtimetype`][] lint rule that reports when a switch
statement or switch expression uses an expression's `runtimeType` as its
switch variable.
- (Thanks [@FMorschel](https://github.com/FMorschel) for many of the above
enhancements!)