| 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>');
|
|
|