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

Unified Diff: lib/src/dart_formatter.dart

Issue 1505983005: Upgrade to analyzer 0.27.0. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: More upgrades. Created 5 years 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 | « bin/format.dart ('k') | 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 428aeecfb645dd0f72836272e9102ef661b4e610..a86c299d50ae0f5b703a5272e3d0117dc0b26fc2 100644
--- a/lib/src/dart_formatter.dart
+++ b/lib/src/dart_formatter.dart
@@ -101,6 +101,8 @@ class DartFormatter {
// Parse it.
var parser = new Parser(stringSource, errorListener);
+ parser.parseConditionalDirectives = true;
+
var node;
if (source.isCompilationUnit) {
node = parser.parseCompilationUnit(startToken);
« no previous file with comments | « bin/format.dart ('k') | lib/src/source_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698