| 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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 buffer.write('<p>'); | 1326 buffer.write('<p>'); |
| 1327 _writeOption( | 1327 _writeOption( |
| 1328 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); | 1328 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); |
| 1329 _writeOption(buffer, 'Cache size', options.cacheSize); | 1329 _writeOption(buffer, 'Cache size', options.cacheSize); |
| 1330 _writeOption(buffer, 'Enable async support', options.enableAsync); | 1330 _writeOption(buffer, 'Enable async support', options.enableAsync); |
| 1331 _writeOption( | 1331 _writeOption( |
| 1332 buffer, 'Enable generic methods', options.enableGenericMethods); | 1332 buffer, 'Enable generic methods', options.enableGenericMethods); |
| 1333 _writeOption( | 1333 _writeOption( |
| 1334 buffer, 'Enable strict call checks', options.enableStrictCallChecks); | 1334 buffer, 'Enable strict call checks', options.enableStrictCallChecks); |
| 1335 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); | 1335 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); |
| 1336 _writeOption(buffer, 'Enable trailing commas', options.enableTrailingComma
s); |
| 1336 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 1337 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 1337 _writeOption(buffer, 'Generate errors in implicit files', | 1338 _writeOption(buffer, 'Generate errors in implicit files', |
| 1338 options.generateImplicitErrors); | 1339 options.generateImplicitErrors); |
| 1339 _writeOption( | 1340 _writeOption( |
| 1340 buffer, 'Generate errors in SDK files', options.generateSdkErrors); | 1341 buffer, 'Generate errors in SDK files', options.generateSdkErrors); |
| 1341 _writeOption(buffer, 'Generate hints', options.hint); | 1342 _writeOption(buffer, 'Generate hints', options.hint); |
| 1342 _writeOption(buffer, 'Incremental resolution', options.incremental); | 1343 _writeOption(buffer, 'Incremental resolution', options.incremental); |
| 1343 _writeOption(buffer, 'Incremental resolution with API changes', | 1344 _writeOption(buffer, 'Incremental resolution with API changes', |
| 1344 options.incrementalApi); | 1345 options.incrementalApi); |
| 1345 _writeOption(buffer, 'Preserve comments', options.preserveComments); | 1346 _writeOption(buffer, 'Preserve comments', options.preserveComments); |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 */ | 2555 */ |
| 2555 static String makeLink( | 2556 static String makeLink( |
| 2556 String path, Map<String, String> params, String innerHtml, | 2557 String path, Map<String, String> params, String innerHtml, |
| 2557 [bool hasError = false]) { | 2558 [bool hasError = false]) { |
| 2558 Uri uri = new Uri(path: path, queryParameters: params); | 2559 Uri uri = new Uri(path: path, queryParameters: params); |
| 2559 String href = HTML_ESCAPE.convert(uri.toString()); | 2560 String href = HTML_ESCAPE.convert(uri.toString()); |
| 2560 String classAttribute = hasError ? ' class="error"' : ''; | 2561 String classAttribute = hasError ? ' class="error"' : ''; |
| 2561 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2562 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 2562 } | 2563 } |
| 2563 } | 2564 } |
| OLD | NEW |