| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:convert'; | 5 import 'dart:convert'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 import 'dart:math'; | 7 import 'dart:math'; |
| 8 | 8 |
| 9 import 'package:analysis_server/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol.dart'; |
| 10 import 'package:analysis_server/protocol/protocol_generated.dart'; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 434 |
| 435 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options, | 435 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options, |
| 436 {void writeAdditionalOptions(StringBuffer buffer)}) { | 436 {void writeAdditionalOptions(StringBuffer buffer)}) { |
| 437 if (options == null) { | 437 if (options == null) { |
| 438 buffer.write('<p>No option information available.</p>'); | 438 buffer.write('<p>No option information available.</p>'); |
| 439 return; | 439 return; |
| 440 } | 440 } |
| 441 buffer.write('<p>'); | 441 buffer.write('<p>'); |
| 442 _writeOption( | 442 _writeOption( |
| 443 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); | 443 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); |
| 444 _writeOption(buffer, 'Enable asserts in initializer lists', |
| 445 options.enableAssertInitializer); |
| 444 _writeOption( | 446 _writeOption( |
| 445 buffer, 'Enable strict call checks', options.enableStrictCallChecks); | 447 buffer, 'Enable strict call checks', options.enableStrictCallChecks); |
| 446 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); | 448 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); |
| 447 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 449 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 448 _writeOption(buffer, 'Generate errors in implicit files', | 450 _writeOption(buffer, 'Generate errors in implicit files', |
| 449 options.generateImplicitErrors); | 451 options.generateImplicitErrors); |
| 450 _writeOption( | 452 _writeOption( |
| 451 buffer, 'Generate errors in SDK files', options.generateSdkErrors); | 453 buffer, 'Generate errors in SDK files', options.generateSdkErrors); |
| 452 _writeOption(buffer, 'Generate hints', options.hint); | 454 _writeOption(buffer, 'Generate hints', options.hint); |
| 453 _writeOption(buffer, 'Incremental resolution', options.incremental); | 455 _writeOption(buffer, 'Incremental resolution', options.incremental); |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 String path, Map<String, String> params, String innerHtml, | 1296 String path, Map<String, String> params, String innerHtml, |
| 1295 [bool hasError = false]) { | 1297 [bool hasError = false]) { |
| 1296 Uri uri = params.isEmpty | 1298 Uri uri = params.isEmpty |
| 1297 ? new Uri(path: path) | 1299 ? new Uri(path: path) |
| 1298 : new Uri(path: path, queryParameters: params); | 1300 : new Uri(path: path, queryParameters: params); |
| 1299 String href = HTML_ESCAPE.convert(uri.toString()); | 1301 String href = HTML_ESCAPE.convert(uri.toString()); |
| 1300 String classAttribute = hasError ? ' class="error"' : ''; | 1302 String classAttribute = hasError ? ' class="error"' : ''; |
| 1301 return '<a href="$href" $classAttribute>$innerHtml</a>'; | 1303 return '<a href="$href" $classAttribute>$innerHtml</a>'; |
| 1302 } | 1304 } |
| 1303 } | 1305 } |
| OLD | NEW |