File tree 6 files changed +24
-3
lines changed
6 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ # 1.0.6
2
+
3
+ * Support URIs in part-of directives (#615 ).
4
+
1
5
# 1.0.5
2
6
3
7
* Support the latest version of ` pkg/analyzer ` .
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import 'package:dart_style/src/io.dart';
14
14
import 'package:dart_style/src/source_code.dart' ;
15
15
16
16
// Note: The following line of code is modified by tool/grind.dart.
17
- const version = "1.0.5 " ;
17
+ const version = "1.0.6 " ;
18
18
19
19
void main (List <String > args) {
20
20
var parser = new ArgParser (allowTrailingOptions: true );
Original file line number Diff line number Diff line change @@ -1516,7 +1516,11 @@ class SourceVisitor extends ThrowingAstVisitor {
1516
1516
space ();
1517
1517
token (node.ofKeyword);
1518
1518
space ();
1519
+
1520
+ // Part-of may have either a name or a URI. Only one of these will be
1521
+ // non-null. We visit both since visit() ignores null.
1519
1522
visit (node.libraryName);
1523
+ visit (node.uri);
1520
1524
});
1521
1525
}
1522
1526
Original file line number Diff line number Diff line change 1
1
name : dart_style
2
2
# Note: See tool/grind.dart for how to bump the version.
3
- version : 1.0.5
3
+ version : 1.0.6
4
4
author :
Dart Team <[email protected] >
5
5
description : Opinionated, automatic Dart source code formatter.
6
6
homepage : https://github.com/dart-lang/dart_style
Original file line number Diff line number Diff line change
1
+ 40 columns |
2
+ >>> part of with uri that fits
3
+ part of "uri.dart";
4
+ <<<
5
+ part of "uri.dart";
6
+ >>> part of with uri does not split on long line
7
+ part of "very_very_very_very_long_uri.dart";
8
+ <<<
9
+ part of "very_very_very_very_long_uri.dart";
Original file line number Diff line number Diff line change @@ -57,4 +57,8 @@ import 'a' if (b.c.d) 'e';
57
57
>>> configuration
58
58
export'a'if(b . c=='d' )'e';
59
59
<<<
60
- export 'a' if (b.c == 'd') 'e';
60
+ export 'a' if (b.c == 'd') 'e';
61
+ >>> part-of with uri
62
+ part of'uri.dart' ;
63
+ <<<
64
+ part of 'uri.dart';
You can’t perform that action at this time.
0 commit comments