dart-sdk/pkg/analyzer/lib
Sam Rawlins 372537f1e4 Add first support for strict-inference as an analysis option.
The first code is HintCode.INFERENCE_FAILURE_ON_UNINITIALIZED_VARIABLE:

```dart
var a;  // Hint: The type of v1 cannot be inferred without a type or initializer
dynamic b;  // OK
var c = 7;  // OK
```

This is currently only enabled via an analysis options file:

```yaml
analyzer:
  language:
    strict-inference: true
```

I could add it as a flag as well, but to start using this internally at Google,
we only need support in the analysis options file.

Bug: https://github.com/dart-lang/sdk/issues/33749
Change-Id: Id2a6afa7c3d724b44c20576c7f48869abcf4255c
Reviewed-on: https://dart-review.googlesource.com/c/93700
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-02-21 17:28:19 +00:00
..
context Unmake some breaking changes made in previous CLs 2018-04-20 16:16:09 +00:00
dart Convert ListLiteral and remove uses of ListLiteral2 2019-02-15 16:17:28 +00:00
error Add first support for strict-inference as an analysis option. 2019-02-21 17:28:19 +00:00
exception Remove unnecessary library directives 2018-10-13 00:44:04 +00:00
file_system Rework the file system tests so that most tests are shared 2018-12-11 13:49:21 +00:00
instrumentation Remove unnecessary library directives 2018-10-13 00:44:04 +00:00
plugin Remove some classes from the analyzer public API 2018-04-24 15:28:15 +00:00
source Make ERROR the default severity for StaticWarningCode. Remove _StrongModeTypeErrorProcessor. 2019-01-28 22:08:17 +00:00
src Add first support for strict-inference as an analysis option. 2019-02-21 17:28:19 +00:00
task Unmake some breaking changes made in previous CLs 2018-04-20 16:16:09 +00:00
analyzer.dart Remove references to analyzer/analyzer.dart 2018-11-03 00:19:22 +00:00