| 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 | 1400 |
| 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(buffer, 'Cache size', options.cacheSize); | |
| 1411 _writeOption( | 1410 _writeOption( |
| 1412 buffer, 'Enable generic methods', options.enableGenericMethods); | 1411 buffer, 'Enable generic methods', options.enableGenericMethods); |
| 1413 _writeOption( | 1412 _writeOption( |
| 1414 buffer, 'Enable strict call checks', options.enableStrictCallChecks); | 1413 buffer, 'Enable strict call checks', options.enableStrictCallChecks); |
| 1415 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); | 1414 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); |
| 1416 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 1415 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 1417 _writeOption(buffer, 'Generate errors in implicit files', | 1416 _writeOption(buffer, 'Generate errors in implicit files', |
| 1418 options.generateImplicitErrors); | 1417 options.generateImplicitErrors); |
| 1419 _writeOption( | 1418 _writeOption( |
| 1420 buffer, 'Generate errors in SDK files', options.generateSdkErrors); | 1419 buffer, 'Generate errors in SDK files', options.generateSdkErrors); |
| (...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2737 */ | 2736 */ |
| 2738 static String makeLink( | 2737 static String makeLink( |
| 2739 String path, Map<String, String> params, String innerHtml, | 2738 String path, Map<String, String> params, String innerHtml, |
| 2740 [bool hasError = false]) { | 2739 [bool hasError = false]) { |
| 2741 Uri uri = new Uri(path: path, queryParameters: params); | 2740 Uri uri = new Uri(path: path, queryParameters: params); |
| 2742 String href = HTML_ESCAPE.convert(uri.toString()); | 2741 String href = HTML_ESCAPE.convert(uri.toString()); |
| 2743 String classAttribute = hasError ? ' class="error"' : ''; | 2742 String classAttribute = hasError ? ' class="error"' : ''; |
| 2744 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2743 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 2745 } | 2744 } |
| 2746 } | 2745 } |
| OLD | NEW |