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

Unified Diff: test/regression/144.unit

Issue 889943004: Indent the parameter list more if the body is a wrapped "=>". Fix #144. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. 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 | « lib/src/source_visitor.dart ('k') | test/splitting/constructors.unit » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/144.unit
diff --git a/test/regression/144.unit b/test/regression/144.unit
new file mode 100644
index 0000000000000000000000000000000000000000..8880048f866678881ebeeb5ec6c7313e7f6b23cf
--- /dev/null
+++ b/test/regression/144.unit
@@ -0,0 +1,26 @@
+>>>
+class Selector {
+ factory Selector.call(String name,
+ LibraryElement library,
+ int arity,
+ [List<String> namedArguments])
+ => new Selector(SelectorKind.CALL, name, library, arity, namedArguments);
+}
+<<<
+class Selector {
+ factory Selector.call(String name, LibraryElement library, int arity,
+ [List<String> namedArguments]) =>
+ new Selector(SelectorKind.CALL, name, library, arity, namedArguments);
+}
+>>> a knock-on issue caused by the initial fix for the above
+class Foo {
+ get getter => "result";
+
+ // Comment.
+}
+<<<
+class Foo {
+ get getter => "result";
+
+ // Comment.
+}
« no previous file with comments | « lib/src/source_visitor.dart ('k') | test/splitting/constructors.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698