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

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

Issue 1420783004: Last performed task diagnostics. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/utilities_general.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analysis_server.src.status.get_handler; 5 library analysis_server.src.status.get_handler;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 buffer.write('</td></tr>'); 1007 buffer.write('</td></tr>');
1008 } 1008 }
1009 buffer.write('</table></p>'); 1009 buffer.write('</table></p>');
1010 } 1010 }
1011 } 1011 }
1012 1012
1013 _writeResponse(request, (StringBuffer buffer) { 1013 _writeResponse(request, (StringBuffer buffer) {
1014 _writePage( 1014 _writePage(
1015 buffer, 'Analysis Server - Context', ['Context: $contextFilter'], 1015 buffer, 'Analysis Server - Context', ['Context: $contextFilter'],
1016 (StringBuffer buffer) { 1016 (StringBuffer buffer) {
1017
1018 buffer.write('<h3>Recent Tasks</h3>');
Brian Wilkerson 2015/10/23 17:28:31 Maybe insert " (most recent last)".
pquitslund 2015/10/23 17:30:03 Done.
1019 AnalysisTask.LAST_TASKS.forEach((String description) {
1020 buffer.write('<p>$description</p>');
1021 });
1022
1017 _writeFiles(buffer, 'Priority Files', priorityNames); 1023 _writeFiles(buffer, 'Priority Files', priorityNames);
1018 _writeFiles(buffer, 'Explicitly Analyzed Files', explicitNames); 1024 _writeFiles(buffer, 'Explicitly Analyzed Files', explicitNames);
1019 _writeFiles(buffer, 'Implicitly Analyzed Files', implicitNames); 1025 _writeFiles(buffer, 'Implicitly Analyzed Files', implicitNames);
1020 1026
1021 buffer.write('<h3>Exceptions</h3>'); 1027 buffer.write('<h3>Exceptions</h3>');
1022 if (exceptions.isEmpty) { 1028 if (exceptions.isEmpty) {
1023 buffer.write('<p>None</p>'); 1029 buffer.write('<p>None</p>');
1024 } else { 1030 } else {
1025 exceptions.forEach((CaughtException exception) { 1031 exceptions.forEach((CaughtException exception) {
1026 _writeException(buffer, exception); 1032 _writeException(buffer, exception);
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 */ 1904 */
1899 static String makeLink( 1905 static String makeLink(
1900 String path, Map<String, String> params, String innerHtml, 1906 String path, Map<String, String> params, String innerHtml,
1901 [bool hasError = false]) { 1907 [bool hasError = false]) {
1902 Uri uri = new Uri(path: path, queryParameters: params); 1908 Uri uri = new Uri(path: path, queryParameters: params);
1903 String href = HTML_ESCAPE.convert(uri.toString()); 1909 String href = HTML_ESCAPE.convert(uri.toString());
1904 String classAttribute = hasError ? ' class="error"' : ''; 1910 String classAttribute = hasError ? ' class="error"' : '';
1905 return '<a href="$href"$classAttribute>$innerHtml</a>'; 1911 return '<a href="$href"$classAttribute>$innerHtml</a>';
1906 } 1912 }
1907 } 1913 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/utilities_general.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698