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

Side by Side Diff: packages/dart_style/test/regression/0100/0137.stmt

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 >>> (indent 2)
2 Iterable<DeclarationMirror> _sortedLibraryDeclarations(LibraryMirror lib) =>
3 lib.declarations.values
4 .where((d) => d is ClassMirror || d is MethodMirror)
5 .toList()
6 ..sort((a, b) {
7 if (a.runtimeType == b.runtimeType) {
8 return _declarationName(a).compareTo(_declarationName(b));
9 }
10 if (a is MethodMirror && b is ClassMirror) return -1;
11 if (a is ClassMirror && b is MethodMirror) return 1;
12 return 0;
13 });
14 <<<
15 Iterable<DeclarationMirror> _sortedLibraryDeclarations(LibraryMirror lib) =>
16 lib.declarations.values
17 .where((d) => d is ClassMirror || d is MethodMirror)
18 .toList()
19 ..sort((a, b) {
20 if (a.runtimeType == b.runtimeType) {
21 return _declarationName(a).compareTo(_declarationName(b));
22 }
23 if (a is MethodMirror && b is ClassMirror) return -1;
24 if (a is ClassMirror && b is MethodMirror) return 1;
25 return 0;
26 });
OLDNEW
« no previous file with comments | « packages/dart_style/test/regression/0100/0135.stmt ('k') | packages/dart_style/test/regression/0100/0139.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698