Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1574523002: add enableAsync to analysis option file flags (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 (StringBuffer buffer) { 1245 (StringBuffer buffer) {
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(buffer, 'Enable async support', options.enableAsync);
1255 _writeOption( 1256 _writeOption(
1256 buffer, 'Enable generic methods', options.enableGenericMethods); 1257 buffer, 'Enable generic methods', options.enableGenericMethods);
1257 _writeOption(buffer, 'Enable strict call checks', 1258 _writeOption(buffer, 'Enable strict call checks',
1258 options.enableStrictCallChecks); 1259 options.enableStrictCallChecks);
1259 _writeOption( 1260 _writeOption(
1260 buffer, 'Enable super mixins', options.enableSuperMixins); 1261 buffer, 'Enable super mixins', options.enableSuperMixins);
1261 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); 1262 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint);
1262 _writeOption(buffer, 'Generate errors in implicit files', 1263 _writeOption(buffer, 'Generate errors in implicit files',
1263 options.generateImplicitErrors); 1264 options.generateImplicitErrors);
1264 _writeOption(buffer, 'Generate errors in SDK files', 1265 _writeOption(buffer, 'Generate errors in SDK files',
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 */ 2401 */
2401 static String makeLink( 2402 static String makeLink(
2402 String path, Map<String, String> params, String innerHtml, 2403 String path, Map<String, String> params, String innerHtml,
2403 [bool hasError = false]) { 2404 [bool hasError = false]) {
2404 Uri uri = new Uri(path: path, queryParameters: params); 2405 Uri uri = new Uri(path: path, queryParameters: params);
2405 String href = HTML_ESCAPE.convert(uri.toString()); 2406 String href = HTML_ESCAPE.convert(uri.toString());
2406 String classAttribute = hasError ? ' class="error"' : ''; 2407 String classAttribute = hasError ? ' class="error"' : '';
2407 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2408 return '<a href="$href"$classAttribute>$innerHtml</a>';
2408 } 2409 }
2409 } 2410 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698