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

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

Issue 983733002: No errors in third-party packages (issue 22170) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 analysis_server.src.get_handler; 5 library analysis_server.src.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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 }); 1003 });
1004 buffer.write('</p>'); 1004 buffer.write('</p>');
1005 1005
1006 buffer.write('<p><b>Options</b></p>'); 1006 buffer.write('<p><b>Options</b></p>');
1007 buffer.write('<p>'); 1007 buffer.write('<p>');
1008 _writeOption( 1008 _writeOption(
1009 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); 1009 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies);
1010 _writeOption(buffer, 'Cache size', options.cacheSize); 1010 _writeOption(buffer, 'Cache size', options.cacheSize);
1011 _writeOption(buffer, 'Generate hints', options.hint); 1011 _writeOption(buffer, 'Generate hints', options.hint);
1012 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); 1012 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint);
1013 _writeOption(buffer, 'Generate SDK errors', options.generateSdkErrors); 1013 _writeOption(buffer, 'Generate errors in implicit files',
1014 options.generateImplicitErrors);
1015 _writeOption(
1016 buffer, 'Generate errors in SDK files', options.generateSdkErrors);
1014 _writeOption(buffer, 'Incremental resolution', options.incremental); 1017 _writeOption(buffer, 'Incremental resolution', options.incremental);
1015 _writeOption(buffer, 'Incremental resolution with API changes', 1018 _writeOption(buffer, 'Incremental resolution with API changes',
1016 options.incrementalApi); 1019 options.incrementalApi);
1017 _writeOption( 1020 _writeOption(
1018 buffer, 'Preserve comments', options.preserveComments, last: true); 1021 buffer, 'Preserve comments', options.preserveComments, last: true);
1019 buffer.write('</p>'); 1022 buffer.write('</p>');
1020 int freq = AnalysisServer.performOperationDelayFreqency; 1023 int freq = AnalysisServer.performOperationDelayFreqency;
1021 String delay = freq > 0 ? '1 ms every $freq ms' : 'off'; 1024 String delay = freq > 0 ? '1 ms every $freq ms' : 'off';
1022 buffer.write('<p><b>perform operation delay:</b> $delay</p>'); 1025 buffer.write('<p><b>perform operation delay:</b> $delay</p>');
1023 1026
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 */ 1557 */
1555 static String makeLink( 1558 static String makeLink(
1556 String path, Map<String, String> params, String innerHtml, 1559 String path, Map<String, String> params, String innerHtml,
1557 [bool hasError = false]) { 1560 [bool hasError = false]) {
1558 Uri uri = new Uri(path: path, queryParameters: params); 1561 Uri uri = new Uri(path: path, queryParameters: params);
1559 String href = HTML_ESCAPE.convert(uri.toString()); 1562 String href = HTML_ESCAPE.convert(uri.toString());
1560 String classAttribute = hasError ? ' class="error"' : ''; 1563 String classAttribute = hasError ? ' class="error"' : '';
1561 return '<a href="$href"$classAttribute>$innerHtml</a>'; 1564 return '<a href="$href"$classAttribute>$innerHtml</a>';
1562 } 1565 }
1563 } 1566 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698