| OLD | NEW |
| 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:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 import 'dart:math'; | 10 import 'dart:math'; |
| (...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options, | 1401 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options, |
| 1402 {void writeAdditionalOptions(StringBuffer buffer)}) { | 1402 {void writeAdditionalOptions(StringBuffer buffer)}) { |
| 1403 if (options == null) { | 1403 if (options == null) { |
| 1404 buffer.write('<p>No option information available.</p>'); | 1404 buffer.write('<p>No option information available.</p>'); |
| 1405 return; | 1405 return; |
| 1406 } | 1406 } |
| 1407 buffer.write('<p>'); | 1407 buffer.write('<p>'); |
| 1408 _writeOption( | 1408 _writeOption( |
| 1409 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); | 1409 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); |
| 1410 _writeOption( | 1410 _writeOption( |
| 1411 buffer, 'Enable generic methods', options.enableGenericMethods); | |
| 1412 _writeOption( | |
| 1413 buffer, 'Enable strict call checks', options.enableStrictCallChecks); | 1411 buffer, 'Enable strict call checks', options.enableStrictCallChecks); |
| 1414 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); | 1412 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); |
| 1415 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 1413 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 1416 _writeOption(buffer, 'Generate errors in implicit files', | 1414 _writeOption(buffer, 'Generate errors in implicit files', |
| 1417 options.generateImplicitErrors); | 1415 options.generateImplicitErrors); |
| 1418 _writeOption( | 1416 _writeOption( |
| 1419 buffer, 'Generate errors in SDK files', options.generateSdkErrors); | 1417 buffer, 'Generate errors in SDK files', options.generateSdkErrors); |
| 1420 _writeOption(buffer, 'Generate hints', options.hint); | 1418 _writeOption(buffer, 'Generate hints', options.hint); |
| 1421 _writeOption(buffer, 'Incremental resolution', options.incremental); | 1419 _writeOption(buffer, 'Incremental resolution', options.incremental); |
| 1422 _writeOption(buffer, 'Incremental resolution with API changes', | 1420 _writeOption(buffer, 'Incremental resolution with API changes', |
| (...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2736 */ | 2734 */ |
| 2737 static String makeLink( | 2735 static String makeLink( |
| 2738 String path, Map<String, String> params, String innerHtml, | 2736 String path, Map<String, String> params, String innerHtml, |
| 2739 [bool hasError = false]) { | 2737 [bool hasError = false]) { |
| 2740 Uri uri = new Uri(path: path, queryParameters: params); | 2738 Uri uri = new Uri(path: path, queryParameters: params); |
| 2741 String href = HTML_ESCAPE.convert(uri.toString()); | 2739 String href = HTML_ESCAPE.convert(uri.toString()); |
| 2742 String classAttribute = hasError ? ' class="error"' : ''; | 2740 String classAttribute = hasError ? ' class="error"' : ''; |
| 2743 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2741 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 2744 } | 2742 } |
| 2745 } | 2743 } |
| OLD | NEW |