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

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

Issue 314173003: Clean ups for warnings and unused code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/get_handler.dart b/pkg/analysis_server/lib/src/get_handler.dart
index ce8ad00b6c966dd60d5b9edbf888de31d10aca23..f0f577f9d2508b935f0332fb4ba52a43ad0cb45d 100644
--- a/pkg/analysis_server/lib/src/get_handler.dart
+++ b/pkg/analysis_server/lib/src/get_handler.dart
@@ -6,9 +6,6 @@ library get.handler;
import 'dart:io';
-import 'package:analyzer/src/generated/engine.dart';
-import 'package:analyzer/src/generated/java_engine.dart' show CaughtException;
-
import 'package:analysis_server/src/socket_server.dart';
/**
@@ -67,57 +64,57 @@ class GetHandler {
['Context', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
true);
// TODO(scheglov) replace with using folder based contexts
- _server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
- AnalysisContentStatistics statistics =
- (context as AnalysisContextImpl).statistics;
- int errorCount = 0;
- int flushedCount = 0;
- int inProcessCount = 0;
- int invalidCount = 0;
- int validCount = 0;
- statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
- errorCount += row.errorCount;
- flushedCount += row.flushedCount;
- inProcessCount += row.inProcessCount;
- invalidCount += row.invalidCount;
- validCount += row.validCount;
- });
- _writeRow(response, [
- '<a href="#context_$key">$key</a>',
- errorCount,
- flushedCount,
- inProcessCount,
- invalidCount,
- validCount]);
- });
+// _server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
+// AnalysisContentStatistics statistics =
+// (context as AnalysisContextImpl).statistics;
+// int errorCount = 0;
+// int flushedCount = 0;
+// int inProcessCount = 0;
+// int invalidCount = 0;
+// int validCount = 0;
+// statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
+// errorCount += row.errorCount;
+// flushedCount += row.flushedCount;
+// inProcessCount += row.inProcessCount;
+// invalidCount += row.invalidCount;
+// validCount += row.validCount;
+// });
+// _writeRow(response, [
+// '<a href="#context_$key">$key</a>',
+// errorCount,
+// flushedCount,
+// inProcessCount,
+// invalidCount,
+// validCount]);
+// });
response.write('</table>');
- _server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
- response.write('<h2><a name="context_$key">Analysis Context: $key</a></h2>');
- AnalysisContentStatistics statistics = (context as AnalysisContextImpl).statistics;
- response.write('<table>');
- _writeRow(
- response,
- ['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
- true);
- statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
- _writeRow(
- response,
- [row.name,
- row.errorCount,
- row.flushedCount,
- row.inProcessCount,
- row.invalidCount,
- row.validCount]);
- });
- response.write('</table>');
- List<CaughtException> exceptions = statistics.exceptions;
- if (!exceptions.isEmpty) {
- response.write('<h2>Exceptions</h2>');
- exceptions.forEach((CaughtException exception) {
- response.write('<p>${exception.exception}</p>');
- });
- }
- });
+// _server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
+// response.write('<h2><a name="context_$key">Analysis Context: $key</a></h2>');
+// AnalysisContentStatistics statistics = (context as AnalysisContextImpl).statistics;
+// response.write('<table>');
+// _writeRow(
+// response,
+// ['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
+// true);
+// statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
+// _writeRow(
+// response,
+// [row.name,
+// row.errorCount,
+// row.flushedCount,
+// row.inProcessCount,
+// row.invalidCount,
+// row.validCount]);
+// });
+// response.write('</table>');
+// List<CaughtException> exceptions = statistics.exceptions;
+// if (!exceptions.isEmpty) {
+// response.write('<h2>Exceptions</h2>');
+// exceptions.forEach((CaughtException exception) {
+// response.write('<p>${exception.exception}</p>');
+// });
+// }
+// });
}
response.write('</body>');
response.write('</html>');
« no previous file with comments | « pkg/analysis_server/lib/src/constants.dart ('k') | pkg/analysis_server/test/analysis_notification_outline_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698