| 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.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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 CONTEXT_QUERY_PARAM: folder.path | 1000 CONTEXT_QUERY_PARAM: folder.path |
| 1001 }, key, _hasException(folderMap[folder]))); | 1001 }, key, _hasException(folderMap[folder]))); |
| 1002 }); | 1002 }); |
| 1003 buffer.write('</p>'); | 1003 buffer.write('</p>'); |
| 1004 | 1004 |
| 1005 buffer.write('<p><b>Options</b></p>'); | 1005 buffer.write('<p><b>Options</b></p>'); |
| 1006 buffer.write('<p>'); | 1006 buffer.write('<p>'); |
| 1007 _writeOption( | 1007 _writeOption( |
| 1008 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); | 1008 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); |
| 1009 _writeOption(buffer, 'Cache size', options.cacheSize); | 1009 _writeOption(buffer, 'Cache size', options.cacheSize); |
| 1010 _writeOption(buffer, 'Enable null-aware operators', |
| 1011 options.enableNullAwareOperators); |
| 1010 _writeOption( | 1012 _writeOption( |
| 1011 buffer, 'Enable strict call checks', options.enableStrictCallChecks); | 1013 buffer, 'Enable strict call checks', options.enableStrictCallChecks); |
| 1012 _writeOption(buffer, 'Generate hints', options.hint); | 1014 _writeOption(buffer, 'Generate hints', options.hint); |
| 1013 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 1015 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 1014 _writeOption(buffer, 'Generate errors in implicit files', | 1016 _writeOption(buffer, 'Generate errors in implicit files', |
| 1015 options.generateImplicitErrors); | 1017 options.generateImplicitErrors); |
| 1016 _writeOption( | 1018 _writeOption( |
| 1017 buffer, 'Generate errors in SDK files', options.generateSdkErrors); | 1019 buffer, 'Generate errors in SDK files', options.generateSdkErrors); |
| 1018 _writeOption(buffer, 'Incremental resolution', options.incremental); | 1020 _writeOption(buffer, 'Incremental resolution', options.incremental); |
| 1019 _writeOption(buffer, 'Incremental resolution with API changes', | 1021 _writeOption(buffer, 'Incremental resolution with API changes', |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 */ | 1580 */ |
| 1579 static String makeLink( | 1581 static String makeLink( |
| 1580 String path, Map<String, String> params, String innerHtml, | 1582 String path, Map<String, String> params, String innerHtml, |
| 1581 [bool hasError = false]) { | 1583 [bool hasError = false]) { |
| 1582 Uri uri = new Uri(path: path, queryParameters: params); | 1584 Uri uri = new Uri(path: path, queryParameters: params); |
| 1583 String href = HTML_ESCAPE.convert(uri.toString()); | 1585 String href = HTML_ESCAPE.convert(uri.toString()); |
| 1584 String classAttribute = hasError ? ' class="error"' : ''; | 1586 String classAttribute = hasError ? ' class="error"' : ''; |
| 1585 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 1587 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 1586 } | 1588 } |
| 1587 } | 1589 } |
| OLD | NEW |