Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Unified Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1852113002: More strong mode changes in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/status/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/status/get_handler.dart b/pkg/analysis_server/lib/src/status/get_handler.dart
index 3f88bd9b904523300bec52bbfc1184ad8efb6cfc..a2cc48ffde9adf2f96ae1cba31aff8d3c3582478 100644
--- a/pkg/analysis_server/lib/src/status/get_handler.dart
+++ b/pkg/analysis_server/lib/src/status/get_handler.dart
@@ -1341,8 +1341,8 @@ class GetHandler {
context?.sourceFactory?.dartSdk?.context?.analysisOptions);
},
(StringBuffer buffer) {
- List<Linter> lints = context
- .getConfigurationData(CONFIGURED_LINTS_KEY) as List<Linter>;
+ List<Linter> lints =
+ context.getConfigurationData(CONFIGURED_LINTS_KEY);
buffer.write('<p><b>Lints</b></p>');
if (lints.isEmpty) {
buffer.write('<p>none</p>');
@@ -1355,8 +1355,7 @@ class GetHandler {
}
List<ErrorProcessor> errorProcessors =
- context.getConfigurationData(CONFIGURED_ERROR_PROCESSORS)
- as List<ErrorProcessor>;
+ context.getConfigurationData(CONFIGURED_ERROR_PROCESSORS);
int processorCount = errorProcessors?.length ?? 0;
buffer
.write('<p><b>Error Processor count</b>: $processorCount</p>');
« no previous file with comments | « pkg/analysis_server/lib/src/services/search/hierarchy.dart ('k') | pkg/analysis_server/test/analysis/update_content_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698