Chromium Code Reviews| Index: pkg/analyzer/lib/src/generated/error.dart |
| diff --git a/pkg/analyzer/lib/src/generated/error.dart b/pkg/analyzer/lib/src/generated/error.dart |
| index af45572c7bba909c839ffd665d84963d9bba4654..66a58bcee827592e16615d3487dc8acdd0b690d1 100644 |
| --- a/pkg/analyzer/lib/src/generated/error.dart |
| +++ b/pkg/analyzer/lib/src/generated/error.dart |
| @@ -3023,6 +3023,15 @@ class HintCode extends ErrorCode { |
| "Either add a return statement or change the return type to 'void'"); |
| /** |
| + * Generate a hint for conditions in control flow statements that uses the |
|
pquitslund
2015/10/28 04:40:35
uses => use?
Brian Wilkerson
2015/10/28 15:27:38
Actually, it needed a bigger re-write than that. B
|
| + * null-aware '?.' operator. |
| + */ |
| + static const HintCode NULL_AWARE_IN_CONDITION = const HintCode( |
| + 'NULL_AWARE_IN_CONDITION', |
| + "The value of the '?.' operator can be 'null', which is not appropriate in a condition", |
| + "Replace the '?.' with a '.', testing the left-hand side for null if necessary"); |
| + |
| + /** |
| * A getter with the override annotation does not override an existing getter. |
| */ |
| static const HintCode OVERRIDE_ON_NON_OVERRIDING_GETTER = const HintCode( |