| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 2fee33496e812e92833f642e7a508937b4f415ce..be50fd4819a5f6a1f1561292009a19ddd1e51aaa 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -2383,6 +2383,14 @@ class GenerateHintsTask extends SourceBasedAnalysisTask {
|
|
|
| @override
|
| void internalPerform() {
|
| + AnalysisOptions analysisOptions = context.analysisOptions;
|
| + if (!analysisOptions.hint) {
|
| + outputs[HINTS] = AnalysisError.NO_ERRORS;
|
| + return;
|
| + }
|
| + //
|
| + // Prepare collectors.
|
| + //
|
| RecordingErrorListener errorListener = new RecordingErrorListener();
|
| Source source = getRequiredSource();
|
| ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
|
| @@ -2417,7 +2425,7 @@ class GenerateHintsTask extends SourceBasedAnalysisTask {
|
| unitElement.accept(visitor);
|
| }
|
| // Dart2js analysis.
|
| - if (context.analysisOptions.dart2jsHint) {
|
| + if (analysisOptions.dart2jsHint) {
|
| unit.accept(new Dart2JSVerifier(errorReporter));
|
| }
|
| // Dart best practices.
|
|
|