| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analysis_server/protocol/protocol_generated.dart'; | |
| 8 import 'package:analysis_server/src/services/correction/status.dart'; | 7 import 'package:analysis_server/src/services/correction/status.dart'; |
| 9 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; | 8 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; |
| 10 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 10 import 'package:analyzer_plugin/protocol/protocol_common.dart'; |
| 11 import 'package:test/test.dart'; | 11 import 'package:test/test.dart'; |
| 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 12 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 13 | 13 |
| 14 import 'abstract_refactoring.dart'; | 14 import 'abstract_refactoring.dart'; |
| 15 | 15 |
| 16 main() { | 16 main() { |
| 17 defineReflectiveSuite(() { | 17 defineReflectiveSuite(() { |
| 18 defineReflectiveTests(ExtractMethodTest); | 18 defineReflectiveTests(ExtractMethodTest); |
| 19 }); | 19 }); |
| 20 } | 20 } |
| (...skipping 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2833 * Returns a deep copy of [refactoring] parameters. | 2833 * Returns a deep copy of [refactoring] parameters. |
| 2834 * There was a bug masked by updating parameter instances shared between the | 2834 * There was a bug masked by updating parameter instances shared between the |
| 2835 * refactoring and the test. | 2835 * refactoring and the test. |
| 2836 */ | 2836 */ |
| 2837 List<RefactoringMethodParameter> _getParametersCopy() { | 2837 List<RefactoringMethodParameter> _getParametersCopy() { |
| 2838 return refactoring.parameters.map((p) { | 2838 return refactoring.parameters.map((p) { |
| 2839 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id); | 2839 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id); |
| 2840 }).toList(); | 2840 }).toList(); |
| 2841 } | 2841 } |
| 2842 } | 2842 } |
| OLD | NEW |