OLD | NEW |
(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 } |
OLD | NEW |