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

Unified Diff: lib/src/options.dart

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/codegen/dart_codegen.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/options.dart
diff --git a/lib/src/options.dart b/lib/src/options.dart
index 971ebe0f5729c7e0b4c6bab28b4cdfca6d6c6ff1..1dba05a98a975a37ed75efdb5accc42f2a3cf811 100644
--- a/lib/src/options.dart
+++ b/lib/src/options.dart
@@ -98,6 +98,10 @@ class CompilerOptions implements RulesOptions, ResolverOptions {
/// Whether to run the dart_style formatter on the generated Dart code.
final bool formatOutput;
+ /// Whether to use a cheap formatter instead of dart_style. This might not be
+ /// a semantically correct formatter and it is used for testing only.
+ final bool cheapTestFormat;
+
/// Output directory for generated code.
final String outputDir;
@@ -171,12 +175,12 @@ class CompilerOptions implements RulesOptions, ResolverOptions {
CompilerOptions({this.checkSdk: false, this.dumpInfo: false,
this.dumpInfoFile, this.dumpSrcDir, this.forceCompile: false,
- this.formatOutput: false, this.ignoreTypes: false, this.outputDir,
- this.outputDart: false, this.useColors: true,
- this.covariantGenerics: true, this.relaxedCasts: true,
- this.useMultiPackage: false, this.packageRoot: 'packages/',
- this.packagePaths: const [], this.inferFromOverrides: true,
- this.inferStaticsFromIdentifiers: false,
+ this.formatOutput: false, this.cheapTestFormat: false,
+ this.ignoreTypes: false, this.outputDir, this.outputDart: false,
+ this.useColors: true, this.covariantGenerics: true,
+ this.relaxedCasts: true, this.useMultiPackage: false,
+ this.packageRoot: 'packages/', this.packagePaths: const [],
+ this.inferFromOverrides: true, this.inferStaticsFromIdentifiers: false,
this.inferInNonStableOrder: false,
this.onlyInferConstsAndFinalFields: false,
this.nonnullableTypes: TypeOptions.NONNULLABLE_TYPES, this.help: false,
« no previous file with comments | « lib/src/codegen/dart_codegen.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698