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

Unified Diff: lib/src/dart_formatter.dart

Issue 844653002: Format enums. Fix #120. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 11 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/source_visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dart_formatter.dart
diff --git a/lib/src/dart_formatter.dart b/lib/src/dart_formatter.dart
index 5b59faa366d5ca85b9b1c0bbadd86fdb858b3a2c..e7c5b5e95ae5da2abc1dad922a9052b490fd178f 100644
--- a/lib/src/dart_formatter.dart
+++ b/lib/src/dart_formatter.dart
@@ -147,6 +147,7 @@ class DartFormatter {
// Parse it.
var parser = new Parser(stringSource, errorListener);
parser.parseAsync = true;
+ parser.parseEnum = true;
pquitslund 2015/01/08 04:49:25 Depending on what version of the analyzer we're pu
Bob Nystrom 2015/01/08 17:35:35 Right now dart_style is constrained to an older ve
var node;
if (source.isCompilationUnit) {
« no previous file with comments | « no previous file | lib/src/source_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698