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 edit.domain; | 5 library edit.domain; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; | 9 import 'package:analysis_server/plugin/edit/assist/assist_core.dart'; |
10 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 10 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 } | 621 } |
622 // check initial conditions | 622 // check initial conditions |
623 initStatus = await refactoring.checkInitialConditions(); | 623 initStatus = await refactoring.checkInitialConditions(); |
624 _checkForReset_afterInitialConditions(); | 624 _checkForReset_afterInitialConditions(); |
625 if (refactoring is ExtractLocalRefactoring) { | 625 if (refactoring is ExtractLocalRefactoring) { |
626 ExtractLocalRefactoring refactoring = this.refactoring; | 626 ExtractLocalRefactoring refactoring = this.refactoring; |
627 ExtractLocalVariableFeedback feedback = this.feedback; | 627 ExtractLocalVariableFeedback feedback = this.feedback; |
628 feedback.names = refactoring.names; | 628 feedback.names = refactoring.names; |
629 feedback.offsets = refactoring.offsets; | 629 feedback.offsets = refactoring.offsets; |
630 feedback.lengths = refactoring.lengths; | 630 feedback.lengths = refactoring.lengths; |
| 631 feedback.coveringExpressionOffsets = |
| 632 refactoring.coveringExpressionOffsets; |
| 633 feedback.coveringExpressionLengths = |
| 634 refactoring.coveringExpressionLengths; |
631 } | 635 } |
632 if (refactoring is ExtractMethodRefactoring) { | 636 if (refactoring is ExtractMethodRefactoring) { |
633 ExtractMethodRefactoring refactoring = this.refactoring; | 637 ExtractMethodRefactoring refactoring = this.refactoring; |
634 ExtractMethodFeedback feedback = this.feedback; | 638 ExtractMethodFeedback feedback = this.feedback; |
635 feedback.canCreateGetter = refactoring.canCreateGetter; | 639 feedback.canCreateGetter = refactoring.canCreateGetter; |
636 feedback.returnType = refactoring.returnType; | 640 feedback.returnType = refactoring.returnType; |
637 feedback.names = refactoring.names; | 641 feedback.names = refactoring.names; |
638 feedback.parameters = refactoring.parameters; | 642 feedback.parameters = refactoring.parameters; |
639 feedback.offsets = refactoring.offsets; | 643 feedback.offsets = refactoring.offsets; |
640 feedback.lengths = refactoring.lengths; | 644 feedback.lengths = refactoring.lengths; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 } | 736 } |
733 return new RefactoringStatus(); | 737 return new RefactoringStatus(); |
734 } | 738 } |
735 } | 739 } |
736 | 740 |
737 /** | 741 /** |
738 * [_RefactoringManager] throws instances of this class internally to stop | 742 * [_RefactoringManager] throws instances of this class internally to stop |
739 * processing in a manager that was reset. | 743 * processing in a manager that was reset. |
740 */ | 744 */ |
741 class _ResetError {} | 745 class _ResetError {} |
OLD | NEW |