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

Side by Side Diff: test/regression/211.unit

Issue 1000513002: Tweak formatting rules. Fix #211. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. Created 5 years, 9 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
« no previous file with comments | « test/regression/121.stmt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 >>> (indent 2)
2 LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
3 return new LiteralMap(null, // Type arguments.
4 new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO),
5 linkedList(entries), symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
6 isConst ? keywordToken('const') : null);
7 }
8 <<<
9 LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
10 return new LiteralMap(null, // Type arguments.
11 new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO), linkedList(entries),
12 symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
13 isConst ? keywordToken('const') : null);
14 }
15 >>>
16 void defineProperty(var obj, String property, var value) {
17 JS('void', 'Object.defineProperty(#, #, '
18 '{value: #, enumerable: false, writable: true, configurable: true})',
19 obj, property, value);
20 }
21 <<<
22 void defineProperty(var obj, String property, var value) {
23 JS('void', 'Object.defineProperty(#, #, '
24 '{value: #, enumerable: false, writable: true, configurable: true})', obj,
25 property, value);
26 }
27 >>> (indent 4)
28 main() {
29 return searchEngine.searchTopLevelDeclarations('').then(
30 (List<SearchMatch> matches) {
31 _addNonImportedElementSuggestions(matches, excludedLibs);
32 return true;
33 });
34 }
35 <<<
36 main() {
37 return searchEngine
38 .searchTopLevelDeclarations('')
39 .then((List<SearchMatch> matches) {
40 _addNonImportedElementSuggestions(matches, excludedLibs);
41 return true;
42 });
43 }
44 >>> (indent 2)
45 test_getRelationships_empty() {
46 return store.getRelationships(elementA, relationship).then(
47 (List<Location> locations) {
48 expect(locations, isEmpty);
49 });
50 }
51 <<<
52 test_getRelationships_empty() {
53 return store
54 .getRelationships(elementA, relationship)
55 .then((List<Location> locations) {
56 expect(locations, isEmpty);
57 });
58 }
59 >>> (indent 2)
60 _asRuntimeType() {
61 return [
62 _class._jsConstructor
63 ].addAll(typeArguments.map((t) => t._asRuntimeType()));
64 }
65 <<<
66 _asRuntimeType() {
67 return [_class._jsConstructor]
68 .addAll(typeArguments.map((t) => t._asRuntimeType()));
69 }
OLDNEW
« no previous file with comments | « test/regression/121.stmt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698