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

Unified Diff: lib/src/source_visitor.dart

Issue 943033002: Change executable name to "darfmt". Fix #163. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Fix warning. 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 | « bin/format.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/source_visitor.dart
diff --git a/lib/src/source_visitor.dart b/lib/src/source_visitor.dart
index 0fbb8da9bbe02dabc3c313e75ce3ab024850c6c7..69d1617a47952ac0eac09a803aa2c7c50155d7e8 100644
--- a/lib/src/source_visitor.dart
+++ b/lib/src/source_visitor.dart
@@ -1130,7 +1130,7 @@ class SourceVisitor implements AstVisitor {
// Corner case: put a space between successive "-" operators so we don't
// inadvertently turn them into a "--" decrement operator.
if (node.operand is PrefixExpression &&
- node.operand.operator.lexeme == "-") {
+ (node.operand as PrefixExpression).operator.lexeme == "-") {
space();
}
« no previous file with comments | « bin/format.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698