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

Unified Diff: test/regression/0400/0478.stmt

Issue 1591463002: Indent functions in named argument lists with non-functions. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 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/argument_list_visitor.dart ('k') | test/splitting/function_arguments.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/0400/0478.stmt
diff --git a/test/regression/0400/0478.stmt b/test/regression/0400/0478.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..c740708b7472f37fd5c4b96f77bb3dc190073e67
--- /dev/null
+++ b/test/regression/0400/0478.stmt
@@ -0,0 +1,42 @@
+>>> (indent 10)
+ statusBarWidgets.add(new Flexible(
+ flex: 0,
+ child: new GestureDetector(onTap: () {
+ setState(() {
+ game.takeTrickUI();
+ });
+ },
+ child: new Container(
+ decoration: style.Box.liveBackground,
+ padding: style.Spacing.smallPadding,
+ child: new Text("Take Cards",
+ style: style.Text.largeStyle)))));
+<<<
+ statusBarWidgets.add(new Flexible(
+ flex: 0,
+ child: new GestureDetector(
+ onTap: () {
+ setState(() {
+ game.takeTrickUI();
+ });
+ },
+ child: new Container(
+ decoration: style.Box.liveBackground,
+ padding: style.Spacing.smallPadding,
+ child: new Text("Take Cards",
+ style: style.Text.largeStyle)))));
+>>> (indent 8)
+ statusBarWidgets
+ .add(new IconButton(icon: "action/swap_vert", onPressed: () {
+ setState(() {
+ _showSplitView = !_showSplitView;
+ });
+ }));
+<<<
+ statusBarWidgets.add(new IconButton(
+ icon: "action/swap_vert",
+ onPressed: () {
+ setState(() {
+ _showSplitView = !_showSplitView;
+ });
+ }));
« no previous file with comments | « lib/src/argument_list_visitor.dart ('k') | test/splitting/function_arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698