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

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

Issue 297123003: Fix warnings in get_handler.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 be7d47b3dd0495bd82354ffb23a46ca63a6759f6..ca938cd411e7e24c3e3f851214a033b5bdddbb0e 100644
--- a/pkg/analysis_server/lib/src/get_handler.dart
+++ b/pkg/analysis_server/lib/src/get_handler.dart
@@ -7,6 +7,7 @@ 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';
@@ -66,14 +67,14 @@ class GetHandler {
['Context', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
true);
_server.analysisServer.contextMap.forEach((String key, AnalysisContext context) {
- AnalysisContentStatistics statistics =
+ AnalysisContextStatistics 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) {
+ statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) {
errorCount += row.errorCount;
flushedCount += row.flushedCount;
inProcessCount += row.inProcessCount;
@@ -91,13 +92,13 @@ class GetHandler {
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;
+ AnalysisContextStatistics statistics = (context as AnalysisContextImpl).statistics;
response.write('<table>');
_writeRow(
response,
['Item', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
true);
- statistics.cacheRows.forEach((AnalysisContentStatistics_CacheRow row) {
+ statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) {
_writeRow(
response,
[row.name,
@@ -108,11 +109,11 @@ class GetHandler {
row.validCount]);
});
response.write('</table>');
- List<AnalysisException> exceptions = statistics.exceptions;
+ List<CaughtException> exceptions = statistics.exceptions;
if (!exceptions.isEmpty) {
response.write('<h2>Exceptions</h2>');
- exceptions.forEach((AnalysisException exception) {
- response.write('<p>${exception.message}</p>');
+ exceptions.forEach((CaughtException exception) {
+ response.write('<p>${exception.exception}</p>');
});
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698