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

Unified Diff: lib/src/codegen/dart_codegen.dart

Issue 1166683005: upgrade dependencies, including migration to package:test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/dart_codegen.dart
diff --git a/lib/src/codegen/dart_codegen.dart b/lib/src/codegen/dart_codegen.dart
index 53fea1d74585f119088e25ccd2eed012566daa72..679831bf059002584550b8ce900f05d52b4cbf89 100644
--- a/lib/src/codegen/dart_codegen.dart
+++ b/lib/src/codegen/dart_codegen.dart
@@ -11,7 +11,6 @@ import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/java_core.dart' as java_core;
import 'package:analyzer/src/generated/scanner.dart' show Token;
-import 'package:dart_style/dart_style.dart';
import 'package:logging/logging.dart' as logger;
import 'package:path/path.dart' as path;
@@ -95,7 +94,7 @@ class FileWriter extends java_core.PrintStringWriter {
bool insideForLoop = false;
void print(x) {
- if (!options.cheapTestFormat) {
+ if (!options.formatOutput) {
super.print(x);
return;
}
@@ -133,15 +132,6 @@ class FileWriter extends java_core.PrintStringWriter {
void finalize() {
String s = toString();
- if (options.formatOutput && !options.cheapTestFormat) {
- DartFormatter d = new DartFormatter();
- try {
- _log.fine("Formatting file $_path ");
- s = d.format(s, uri: _path);
- } catch (e) {
- _log.severe("Failed to format $_path: " + e.toString());
- }
- }
_log.fine("Writing file $_path");
new File(_path).writeAsStringSync(s);
}
« no previous file with comments | « no previous file | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698