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

Side by Side Diff: pkg/analysis_server/test/src/plugin/result_converter_test.dart

Issue 2697553002: Remove duplicate key in kindMap (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | 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
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analysis_server/plugin/protocol/protocol.dart' as server; 5 import 'package:analysis_server/plugin/protocol/protocol.dart' as server;
6 import 'package:analysis_server/src/plugin/result_converter.dart'; 6 import 'package:analysis_server/src/plugin/result_converter.dart';
7 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server; 7 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server;
8 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 8 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
9 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 plugin.RefactoringKind.CONVERT_GETTER_TO_METHOD: 311 plugin.RefactoringKind.CONVERT_GETTER_TO_METHOD:
312 server.RefactoringKind.CONVERT_GETTER_TO_METHOD, 312 server.RefactoringKind.CONVERT_GETTER_TO_METHOD,
313 plugin.RefactoringKind.CONVERT_METHOD_TO_GETTER: 313 plugin.RefactoringKind.CONVERT_METHOD_TO_GETTER:
314 server.RefactoringKind.CONVERT_METHOD_TO_GETTER, 314 server.RefactoringKind.CONVERT_METHOD_TO_GETTER,
315 plugin.RefactoringKind.EXTRACT_LOCAL_VARIABLE: 315 plugin.RefactoringKind.EXTRACT_LOCAL_VARIABLE:
316 server.RefactoringKind.EXTRACT_LOCAL_VARIABLE, 316 server.RefactoringKind.EXTRACT_LOCAL_VARIABLE,
317 plugin.RefactoringKind.EXTRACT_METHOD: 317 plugin.RefactoringKind.EXTRACT_METHOD:
318 server.RefactoringKind.EXTRACT_METHOD, 318 server.RefactoringKind.EXTRACT_METHOD,
319 plugin.RefactoringKind.INLINE_LOCAL_VARIABLE: 319 plugin.RefactoringKind.INLINE_LOCAL_VARIABLE:
320 server.RefactoringKind.INLINE_LOCAL_VARIABLE, 320 server.RefactoringKind.INLINE_LOCAL_VARIABLE,
321 plugin.RefactoringKind.INLINE_LOCAL_VARIABLE:
322 server.RefactoringKind.INLINE_LOCAL_VARIABLE,
323 plugin.RefactoringKind.MOVE_FILE: server.RefactoringKind.MOVE_FILE, 321 plugin.RefactoringKind.MOVE_FILE: server.RefactoringKind.MOVE_FILE,
324 plugin.RefactoringKind.RENAME: server.RefactoringKind.RENAME, 322 plugin.RefactoringKind.RENAME: server.RefactoringKind.RENAME,
325 plugin.RefactoringKind.SORT_MEMBERS: server.RefactoringKind.SORT_MEMBERS, 323 plugin.RefactoringKind.SORT_MEMBERS: server.RefactoringKind.SORT_MEMBERS,
326 }; 324 };
327 kindMap.forEach( 325 kindMap.forEach(
328 (plugin.RefactoringKind pluginKind, server.RefactoringKind serverKind) { 326 (plugin.RefactoringKind pluginKind, server.RefactoringKind serverKind) {
329 expect(converter.convertRefactoringKind(pluginKind), serverKind); 327 expect(converter.convertRefactoringKind(pluginKind), serverKind);
330 }); 328 });
331 } 329 }
332 330
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 new server.LinkedEditGroup( 425 new server.LinkedEditGroup(
428 <server.Position>[new server.Position('b.dart', 4)], 426 <server.Position>[new server.Position('b.dart', 4)],
429 5, 427 5,
430 <server.LinkedEditSuggestion>[ 428 <server.LinkedEditSuggestion>[
431 new server.LinkedEditSuggestion( 429 new server.LinkedEditSuggestion(
432 'v', server.LinkedEditSuggestionKind.METHOD) 430 'v', server.LinkedEditSuggestionKind.METHOD)
433 ]) 431 ])
434 ], 432 ],
435 selection: new server.Position('c.dart', 6)); 433 selection: new server.Position('c.dart', 6));
436 } 434 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698