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

Unified Diff: lib/strong_mode.dart

Issue 1266483003: format with dart_style 0.2.0-rc.3 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/summary.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/strong_mode.dart
diff --git a/lib/strong_mode.dart b/lib/strong_mode.dart
index 71c2d10ffc8d98add8d76755cfec2370993b9a6d..740fa645ee57c039bd5e4c0daf4dac610f2bb953 100644
--- a/lib/strong_mode.dart
+++ b/lib/strong_mode.dart
@@ -72,7 +72,6 @@ class _ErrorCollector implements AnalysisErrorListener {
}
class StrongModeOptions {
-
/// Whether to infer return types and field types from overridden members.
final bool inferFromOverrides;
static const inferFromOverridesDefault = true;
@@ -115,11 +114,13 @@ class StrongModeOptions {
// compile to JS.
final bool hints;
- const StrongModeOptions({this.hints: false,
+ const StrongModeOptions(
+ {this.hints: false,
this.inferFromOverrides: inferFromOverridesDefault,
this.inferTransitively: inferTransitivelyDefault,
this.onlyInferConstsAndFinalFields: onlyInferConstAndFinalFieldsDefault,
- this.inferDownwards: inferDownwardsDefault, this.relaxedCasts: true,
+ this.inferDownwards: inferDownwardsDefault,
+ this.relaxedCasts: true,
this.nonnullableTypes: StrongModeOptions.NONNULLABLE_TYPES});
StrongModeOptions.fromArguments(ArgResults args, {String prefix: ''})
@@ -154,7 +155,7 @@ class StrongModeOptions {
hide: hide)
..addFlag(prefix + 'infer-from-overrides',
help: 'Infer unspecified types of fields and return types from\n'
- 'definitions in supertypes',
+ 'definitions in supertypes',
defaultsTo: inferFromOverridesDefault,
hide: hide)
..addFlag(prefix + 'infer-transitively',
« no previous file with comments | « lib/src/summary.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698