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

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

Issue 2361433002: Async is no longer optional (Closed)
Patch Set: Created 4 years, 3 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: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 28 matching lines...) Expand all
39 import 'package:analyzer/src/generated/resolver.dart'; 39 import 'package:analyzer/src/generated/resolver.dart';
40 import 'package:analyzer/src/generated/sdk.dart'; 40 import 'package:analyzer/src/generated/sdk.dart';
41 import 'package:analyzer/src/generated/source.dart'; 41 import 'package:analyzer/src/generated/source.dart';
42 import 'package:analyzer/src/generated/utilities_collection.dart'; 42 import 'package:analyzer/src/generated/utilities_collection.dart';
43 import 'package:analyzer/src/generated/utilities_general.dart'; 43 import 'package:analyzer/src/generated/utilities_general.dart';
44 import 'package:analyzer/src/services/lint.dart'; 44 import 'package:analyzer/src/services/lint.dart';
45 import 'package:analyzer/src/task/dart.dart'; 45 import 'package:analyzer/src/task/dart.dart';
46 import 'package:analyzer/src/task/driver.dart'; 46 import 'package:analyzer/src/task/driver.dart';
47 import 'package:analyzer/src/task/html.dart'; 47 import 'package:analyzer/src/task/html.dart';
48 import 'package:analyzer/src/task/options.dart'; 48 import 'package:analyzer/src/task/options.dart';
49 import 'package:analyzer/src/task/options.dart' show CONFIGURED_ERROR_PROCESSORS ; 49 import 'package:analyzer/src/task/options.dart'
50 show CONFIGURED_ERROR_PROCESSORS;
50 import 'package:analyzer/task/dart.dart'; 51 import 'package:analyzer/task/dart.dart';
51 import 'package:analyzer/task/general.dart'; 52 import 'package:analyzer/task/general.dart';
52 import 'package:analyzer/task/html.dart'; 53 import 'package:analyzer/task/html.dart';
53 import 'package:analyzer/task/model.dart'; 54 import 'package:analyzer/task/model.dart';
54 import 'package:plugin/plugin.dart'; 55 import 'package:plugin/plugin.dart';
55 56
56 /** 57 /**
57 * A function that can be used to generate HTML output into the given [buffer]. 58 * A function that can be used to generate HTML output into the given [buffer].
58 * The HTML that is generated must be valid (special characters must already be 59 * The HTML that is generated must be valid (special characters must already be
59 * encoded). 60 * encoded).
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options, 1401 void writeOptions(StringBuffer buffer, AnalysisOptionsImpl options,
1401 {void writeAdditionalOptions(StringBuffer buffer)}) { 1402 {void writeAdditionalOptions(StringBuffer buffer)}) {
1402 if (options == null) { 1403 if (options == null) {
1403 buffer.write('<p>No option information available.</p>'); 1404 buffer.write('<p>No option information available.</p>');
1404 return; 1405 return;
1405 } 1406 }
1406 buffer.write('<p>'); 1407 buffer.write('<p>');
1407 _writeOption( 1408 _writeOption(
1408 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies); 1409 buffer, 'Analyze functon bodies', options.analyzeFunctionBodies);
1409 _writeOption(buffer, 'Cache size', options.cacheSize); 1410 _writeOption(buffer, 'Cache size', options.cacheSize);
1410 _writeOption(buffer, 'Enable async support', options.enableAsync);
1411 _writeOption( 1411 _writeOption(
1412 buffer, 'Enable generic methods', options.enableGenericMethods); 1412 buffer, 'Enable generic methods', options.enableGenericMethods);
1413 _writeOption( 1413 _writeOption(
1414 buffer, 'Enable strict call checks', options.enableStrictCallChecks); 1414 buffer, 'Enable strict call checks', options.enableStrictCallChecks);
1415 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins); 1415 _writeOption(buffer, 'Enable super mixins', options.enableSuperMixins);
1416 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint); 1416 _writeOption(buffer, 'Generate dart2js hints', options.dart2jsHint);
1417 _writeOption(buffer, 'Generate errors in implicit files', 1417 _writeOption(buffer, 'Generate errors in implicit files',
1418 options.generateImplicitErrors); 1418 options.generateImplicitErrors);
1419 _writeOption( 1419 _writeOption(
1420 buffer, 'Generate errors in SDK files', options.generateSdkErrors); 1420 buffer, 'Generate errors in SDK files', options.generateSdkErrors);
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 */ 2737 */
2738 static String makeLink( 2738 static String makeLink(
2739 String path, Map<String, String> params, String innerHtml, 2739 String path, Map<String, String> params, String innerHtml,
2740 [bool hasError = false]) { 2740 [bool hasError = false]) {
2741 Uri uri = new Uri(path: path, queryParameters: params); 2741 Uri uri = new Uri(path: path, queryParameters: params);
2742 String href = HTML_ESCAPE.convert(uri.toString()); 2742 String href = HTML_ESCAPE.convert(uri.toString());
2743 String classAttribute = hasError ? ' class="error"' : ''; 2743 String classAttribute = hasError ? ' class="error"' : '';
2744 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2744 return '<a href="$href"$classAttribute>$innerHtml</a>';
2745 } 2745 }
2746 } 2746 }
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