| Index: packages/dart_style/test/regression/0200/0211.unit
|
| diff --git a/packages/dart_style/test/regression/0200/0211.unit b/packages/dart_style/test/regression/0200/0211.unit
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..01766d8840411adde51e44362529e5cabc1ead21
|
| --- /dev/null
|
| +++ b/packages/dart_style/test/regression/0200/0211.unit
|
| @@ -0,0 +1,74 @@
|
| +>>> (indent 2)
|
| + LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
|
| + return new LiteralMap(null, // Type arguments.
|
| + new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO),
|
| + linkedList(entries), symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
|
| + isConst ? keywordToken('const') : null);
|
| + }
|
| +<<<
|
| + LiteralMap mapLiteral(List<LiteralMapEntry> entries, {bool isConst: false}) {
|
| + return new LiteralMap(
|
| + null, // Type arguments.
|
| + new NodeList(symbolToken(OPEN_CURLY_BRACKET_INFO), linkedList(entries),
|
| + symbolToken(CLOSE_CURLY_BRACKET_INFO), ','),
|
| + isConst ? keywordToken('const') : null);
|
| + }
|
| +>>>
|
| +void defineProperty(var obj, String property, var value) {
|
| + JS('void', 'Object.defineProperty(#, #, '
|
| + '{value: #, enumerable: false, writable: true, configurable: true})',
|
| + obj, property, value);
|
| +}
|
| +<<<
|
| +void defineProperty(var obj, String property, var value) {
|
| + JS(
|
| + 'void',
|
| + 'Object.defineProperty(#, #, '
|
| + '{value: #, enumerable: false, writable: true, configurable: true})',
|
| + obj,
|
| + property,
|
| + value);
|
| +}
|
| +>>> (indent 4)
|
| + main() {
|
| + return searchEngine.searchTopLevelDeclarations('').then(
|
| + (List<SearchMatch> matches) {
|
| + _addNonImportedElementSuggestions(matches, excludedLibs);
|
| + return true;
|
| + });
|
| + }
|
| +<<<
|
| + main() {
|
| + return searchEngine
|
| + .searchTopLevelDeclarations('')
|
| + .then((List<SearchMatch> matches) {
|
| + _addNonImportedElementSuggestions(matches, excludedLibs);
|
| + return true;
|
| + });
|
| + }
|
| +>>> (indent 2)
|
| + test_getRelationships_empty() {
|
| + return store.getRelationships(elementA, relationship).then(
|
| + (List<Location> locations) {
|
| + expect(locations, isEmpty);
|
| + });
|
| + }
|
| +<<<
|
| + test_getRelationships_empty() {
|
| + return store
|
| + .getRelationships(elementA, relationship)
|
| + .then((List<Location> locations) {
|
| + expect(locations, isEmpty);
|
| + });
|
| + }
|
| +>>> (indent 2)
|
| + _asRuntimeType() {
|
| + return [
|
| + _class._jsConstructor
|
| + ].addAll(typeArguments.map((t) => t._asRuntimeType()));
|
| + }
|
| +<<<
|
| + _asRuntimeType() {
|
| + return [_class._jsConstructor]
|
| + .addAll(typeArguments.map((t) => t._asRuntimeType()));
|
| + }
|
|
|