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

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

Issue 2911563002: show the enableAssertInitializer setting in the diagnostics page (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698