update CHANGELOG for new hints

Fixes #32518

Closes #32524
https://github.com/dart-lang/sdk/pull/32524

GitOrigin-RevId: 7779b37697bf522b9d7d1dd3b6cbb9e67191b70c
Change-Id: I15f7cb3cb69e6c3fb6db57943f73f9187b499d1e
Reviewed-on: https://dart-review.googlesource.com/46423
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Alexandre Ardhuin 2018-03-16 15:43:37 +00:00 committed by commit-bot@chromium.org
parent 8108ad9e0e
commit d0f4d7e229

View file

@ -293,22 +293,36 @@ Still need entries for all changes to dart:web_audio,web_gl,web_sql since 1.x
### Tool Changes
* Analyzer
#### Analyzer
* The analyzer will no longer issue a warning when a generic type parameter
is used as the type in an instance check. For example:
* The analyzer will no longer issue a warning when a generic type parameter
is used as the type in an instance check. For example:
```dart
test<T>() {
print(3 is T); // No warning
}
```
* New static checking of `@visibleForTesting` elements. Accessing a method,
function, class, etc. annotated with `@visibleForTesting` from a file _not_
in a `test/` directory will result in a new hint ([issue 28273]).
* Static analysis now respects functions annotated with `@alwaysThrows`
([issue 31384]).
* New hints added:
* `NULL_AWARE_BEFORE_OPERATOR` when an operator is used after a null-aware
access. For example:
```dart
test<T>() {
print(3 is T); // No warning
}
x?.a - ''; // HINT
```
* New static checking of `@visibleForTesting` elements. Accessing a method,
function, class, etc. annotated with `@visibleForTesting` from a file _not_
in a `test/` directory will result in a new hint ([issue 28273]).
* Static analysis now respects functions annotated with `@alwaysThrows`
([issue 31384]).
* `NULL_AWARE_IN_LOGICAL_OPERATOR` when an expression with null-aware access
is used as a condition in logical operators. For example:
```dart
x.a || x?.b; // HINT
```
[issue 28273]: https://github.com/dart-lang/sdk/issues/28273
[issue 31384]: https://github.com/dart-lang/sdk/issues/31384