| 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 library test.services.refactoring.extract_method; | 5 library test.services.refactoring.extract_method; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/protocol.dart'; | 9 import 'package:analysis_server/src/protocol.dart'; |
| 10 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; | 10 import 'package:analysis_server/src/services/refactoring/extract_method.dart'; |
| 11 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 11 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
| 12 import 'package:analysis_testing/reflective_tests.dart'; | 12 import '../../reflective_tests.dart'; |
| 13 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 14 | 14 |
| 15 import 'abstract_refactoring.dart'; | 15 import 'abstract_refactoring.dart'; |
| 16 | 16 |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 groupSep = ' | '; | 19 groupSep = ' | '; |
| 20 runReflectiveTests(ExtractMethodTest); | 20 runReflectiveTests(ExtractMethodTest); |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2308 * Returns a deep copy of [refactoring] parameters. | 2308 * Returns a deep copy of [refactoring] parameters. |
| 2309 * There was a bug masked by updating parameter instances shared between the | 2309 * There was a bug masked by updating parameter instances shared between the |
| 2310 * refactoring and the test. | 2310 * refactoring and the test. |
| 2311 */ | 2311 */ |
| 2312 List<RefactoringMethodParameter> _getParametersCopy() { | 2312 List<RefactoringMethodParameter> _getParametersCopy() { |
| 2313 return refactoring.parameters.map((p) { | 2313 return refactoring.parameters.map((p) { |
| 2314 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id); | 2314 return new RefactoringMethodParameter(p.kind, p.type, p.name, id: p.id); |
| 2315 }).toList(); | 2315 }).toList(); |
| 2316 } | 2316 } |
| 2317 } | 2317 } |
| OLD | NEW |