Chromium Code Reviews| 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: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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1246 buffer.write('<h3>Configuration</h3>'); | 1246 buffer.write('<h3>Configuration</h3>'); |
| 1247 | 1247 |
| 1248 _writeTwoColumns(buffer, (StringBuffer buffer) { | 1248 _writeTwoColumns(buffer, (StringBuffer buffer) { |
| 1249 AnalysisOptionsImpl options = context.analysisOptions; | 1249 AnalysisOptionsImpl options = context.analysisOptions; |
| 1250 buffer.write('<p><b>Options</b></p>'); | 1250 buffer.write('<p><b>Options</b></p>'); |
| 1251 buffer.write('<p>'); | 1251 buffer.write('<p>'); |
| 1252 _writeOption( | 1252 _writeOption( |
| 1253 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); | 1253 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); |
| 1254 _writeOption(buffer, 'Cache size', options.cacheSize); | 1254 _writeOption(buffer, 'Cache size', options.cacheSize); |
| 1255 _writeOption( | 1255 _writeOption( |
| 1256 buffer, 'Enable async support', options.enableAsync); | |
|
Brian Wilkerson
2016/01/08 18:51:35
not formatted?
| |
| 1257 _writeOption( | |
| 1256 buffer, 'Enable generic methods', options.enableGenericMethods); | 1258 buffer, 'Enable generic methods', options.enableGenericMethods); |
| 1257 _writeOption(buffer, 'Enable strict call checks', | 1259 _writeOption(buffer, 'Enable strict call checks', |
| 1258 options.enableStrictCallChecks); | 1260 options.enableStrictCallChecks); |
| 1259 _writeOption( | 1261 _writeOption( |
| 1260 buffer, 'Enable super mixins', options.enableSuperMixins); | 1262 buffer, 'Enable super mixins', options.enableSuperMixins); |
| 1261 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); | 1263 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); |
| 1262 _writeOption(buffer, 'Generate errors in implicit files', | 1264 _writeOption(buffer, 'Generate errors in implicit files', |
| 1263 options.generateImplicitErrors); | 1265 options.generateImplicitErrors); |
| 1264 _writeOption(buffer, 'Generate errors in SDK files', | 1266 _writeOption(buffer, 'Generate errors in SDK files', |
| 1265 options.generateSdkErrors); | 1267 options.generateSdkErrors); |
| (...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2400 */ | 2402 */ |
| 2401 static String makeLink( | 2403 static String makeLink( |
| 2402 String path, Map<String, String> params, String innerHtml, | 2404 String path, Map<String, String> params, String innerHtml, |
| 2403 [bool hasError = false]) { | 2405 [bool hasError = false]) { |
| 2404 Uri uri = new Uri(path: path, queryParameters: params); | 2406 Uri uri = new Uri(path: path, queryParameters: params); |
| 2405 String href = HTML_ESCAPE.convert(uri.toString()); | 2407 String href = HTML_ESCAPE.convert(uri.toString()); |
| 2406 String classAttribute = hasError ? ' class="error"' : ''; | 2408 String classAttribute = hasError ? ' class="error"' : ''; |
| 2407 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2409 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
| 2408 } | 2410 } |
| 2409 } | 2411 } |
| OLD | NEW |