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

Unified Diff: test/splitting/mixed.stmt

Issue 2521383002: Correctly indent the RHS of 'is' and 'as' expressions. (Closed)
Patch Set: Created 4 years, 1 month 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/source_visitor.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/mixed.stmt
diff --git a/test/splitting/mixed.stmt b/test/splitting/mixed.stmt
index 33cdba44bf5f5023add63a19a9ba8f422f48079c..97ba50758a88a80d6afa5795236388e496fb364c 100644
--- a/test/splitting/mixed.stmt
+++ b/test/splitting/mixed.stmt
@@ -210,4 +210,16 @@ veryLongFunction() => longArgument + longArgument + longArgument;
veryLongFunction() =>
longArgument +
longArgument +
- longArgument;
+ longArgument;
+>>> initialize with as expression
+var longVariableName = identifierSoLongItWraps as SomeClassName;
+<<<
+var longVariableName =
+ identifierSoLongItWraps
+ as SomeClassName;
+>>> initialize with is expression
+var longVariableName = identifierSoLongItWraps is SomeClassName;
+<<<
+var longVariableName =
+ identifierSoLongItWraps
+ is SomeClassName;
« no previous file with comments | « lib/src/source_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698