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

Side by Side Diff: test/splitting/imports.unit

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 unified diff | Download patch
« no previous file with comments | « test/comments/top_level.unit ('k') | test/whitespace/directives.unit » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> does not wrap long import string (#16366) 2 >>> does not wrap long import string (#16366)
3 import 'package:some/very/long/import/path.dart'; 3 import 'package:some/very/long/import/path.dart';
4 <<< 4 <<<
5 import 'package:some/very/long/import/path.dart'; 5 import 'package:some/very/long/import/path.dart';
6 >>> wrap import at as 6 >>> wrap import at as
7 import 'package:some/very/long/import/path.dart' as path; 7 import 'package:some/very/long/import/path.dart' as path;
8 <<< 8 <<<
9 import 'package:some/very/long/import/path.dart' 9 import 'package:some/very/long/import/path.dart'
10 as path; 10 as path;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 import 'foo.dart' 113 import 'foo.dart'
114 hide Ape, Bear 114 hide Ape, Bear
115 show Ape, Bear, Cat, Dog; 115 show Ape, Bear, Cat, Dog;
116 >>> force split in list 116 >>> force split in list
117 import 'foo.dart' hide First, // 117 import 'foo.dart' hide First, //
118 Second; 118 Second;
119 <<< 119 <<<
120 import 'foo.dart' 120 import 'foo.dart'
121 hide 121 hide
122 First, // 122 First, //
123 Second; 123 Second;
124 >>> multiple configurations on one line
125 import 'a' if (b) 'b' if (c) 'c';
126 <<<
127 import 'a' if (b) 'b' if (c) 'c';
128 >>> if configurations don't fit, they all split
129 import 'long/import/url.dart' if (b) 'b' if (c) 'c';
130 <<<
131 import 'long/import/url.dart'
132 if (b) 'b'
133 if (c) 'c';
134 >>> do not split before uri
135 import 'long/import/url.dart' if (config) 'very/long/configured/import/url.dart' ;
136 <<<
137 import 'long/import/url.dart'
138 if (config) 'very/long/configured/import/url.dart';
139 >>> split before ==
140 import 'some/uri.dart' if (config.name.debug == 'string') 'c';
141 <<<
142 import 'some/uri.dart'
143 if (config.name.debug ==
144 'string') 'c';
OLDNEW
« no previous file with comments | « test/comments/top_level.unit ('k') | test/whitespace/directives.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698