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

Side by Side Diff: pkg/analysis_server/lib/src/get_handler.dart

Issue 300023004: Partial implementation of the 'setAnalysisRoots' API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library get.handler; 5 library get.handler;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_engine.dart' show CaughtException; 10 import 'package:analyzer/src/generated/java_engine.dart' show CaughtException;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 response.write('<p>Not running</p>'); 59 response.write('<p>Not running</p>');
60 } else { 60 } else {
61 response.write('<p>Running</p>'); 61 response.write('<p>Running</p>');
62 response.write('<h1>Analysis Contexts</h1>'); 62 response.write('<h1>Analysis Contexts</h1>');
63 response.write('<h2>Summary</h2>'); 63 response.write('<h2>Summary</h2>');
64 response.write('<table>'); 64 response.write('<table>');
65 _writeRow( 65 _writeRow(
66 response, 66 response,
67 ['Context', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'], 67 ['Context', 'ERROR', 'FLUSHED', 'IN_PROCESS', 'INVALID', 'VALID'],
68 true); 68 true);
69 // TODO(scheglov) replace with using folder based contexts
69 _server.analysisServer.contextMap.forEach((String key, AnalysisContext con text) { 70 _server.analysisServer.contextMap.forEach((String key, AnalysisContext con text) {
70 AnalysisContextStatistics statistics = 71 AnalysisContextStatistics statistics =
71 (context as AnalysisContextImpl).statistics; 72 (context as AnalysisContextImpl).statistics;
72 int errorCount = 0; 73 int errorCount = 0;
73 int flushedCount = 0; 74 int flushedCount = 0;
74 int inProcessCount = 0; 75 int inProcessCount = 0;
75 int invalidCount = 0; 76 int invalidCount = 0;
76 int validCount = 0; 77 int validCount = 0;
77 statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) { 78 statistics.cacheRows.forEach((AnalysisContextStatistics_CacheRow row) {
78 errorCount += row.errorCount; 79 errorCount += row.errorCount;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 response.write(value); 152 response.write(value);
152 response.write('</td>'); 153 response.write('</td>');
153 }); 154 });
154 if (header) { 155 if (header) {
155 response.write('</th>'); 156 response.write('</th>');
156 } else { 157 } else {
157 response.write('</tr>'); 158 response.write('</tr>');
158 } 159 }
159 } 160 }
160 } 161 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/domain_context.dart ('k') | pkg/analysis_server/lib/src/protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698