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( |
| 11 null, // Type arguments. |
| 12 new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO), linkedList(entries), |
| 13 symbolToken(CLOSE_CURLY_BRACKET_INFO), ','), |
| 14 isConst ? keywordToken('const') : null); |
| 15 } |
| 16 >>> |
| 17 void defineProperty(var obj, String property, var value) { |
| 18 JS('void', 'Object.defineProperty(#, #, ' |
| 19 '{value: #, enumerable: false, writable: true, configurable: true})', |
| 20 obj, property, value); |
| 21 } |
| 22 <<< |
| 23 void defineProperty(var obj, String property, var value) { |
| 24 JS( |
| 25 'void', |
| 26 'Object.defineProperty(#, #, ' |
| 27 '{value: #, enumerable: false, writable: true, configurable: true})', |
| 28 obj, |
| 29 property, |
| 30 value); |
| 31 } |
| 32 >>> (indent 4) |
| 33 main() { |
| 34 return searchEngine.searchTopLevelDeclarations('').then( |
| 35 (List<SearchMatch> matches) { |
| 36 _addNonImportedElementSuggestions(matches, excludedLibs); |
| 37 return true; |
| 38 }); |
| 39 } |
| 40 <<< |
| 41 main() { |
| 42 return searchEngine |
| 43 .searchTopLevelDeclarations('') |
| 44 .then((List<SearchMatch> matches) { |
| 45 _addNonImportedElementSuggestions(matches, excludedLibs); |
| 46 return true; |
| 47 }); |
| 48 } |
| 49 >>> (indent 2) |
| 50 test_getRelationships_empty() { |
| 51 return store.getRelationships(elementA, relationship).then( |
| 52 (List<Location> locations) { |
| 53 expect(locations, isEmpty); |
| 54 }); |
| 55 } |
| 56 <<< |
| 57 test_getRelationships_empty() { |
| 58 return store |
| 59 .getRelationships(elementA, relationship) |
| 60 .then((List<Location> locations) { |
| 61 expect(locations, isEmpty); |
| 62 }); |
| 63 } |
| 64 >>> (indent 2) |
| 65 _asRuntimeType() { |
| 66 return [ |
| 67 _class._jsConstructor |
| 68 ].addAll(typeArguments.map((t) => t._asRuntimeType())); |
| 69 } |
| 70 <<< |
| 71 _asRuntimeType() { |
| 72 return [_class._jsConstructor] |
| 73 .addAll(typeArguments.map((t) => t._asRuntimeType())); |
| 74 } |
OLD | NEW |