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

Issue 9834028: Initial implementation of "Rename Local Variable" refactoring. (Closed)

Created:
8 years, 9 months ago by scheglov
Modified:
8 years, 9 months ago
Reviewers:
messick
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Initial implementation of "Rename Local Variable" refactoring. R=messick@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5875

Patch Set 1 #

Total comments: 326

Patch Set 2 : Clean up after review comments. No inline/linked mode yet. #

Patch Set 3 : LInked/inline mode for rename #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12517 lines, -1029 lines) Patch
M compiler/java/com/google/dart/compiler/ast/DartVariable.java View 1 2 1 chunk +1 line, -0 lines 1 comment Download
M editor/tools/plugins/com.google.dart.tools.core/META-INF/MANIFEST.MF View 2 chunks +2 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/DartRefactoringDescriptorUtil.java View 1 1 chunk +713 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/DescriptorMessages.java View 1 1 chunk +72 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/DescriptorMessages.properties View 1 1 chunk +38 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/descriptors/RefactoringSignatureDescriptorFactory.java View 1 1 chunk +274 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/MultiStateCompilationUnitChange.java View 1 2 chunks +0 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java View 1 5 chunks +0 lines, -7 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/CompilationUnitChange.java View 1 5 chunks +0 lines, -17 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/IDartRefactorings.java View 1 2 1 chunk +414 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/UndoCompilationUnitChange.java View 1 2 chunks +0 lines, -9 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/descriptors/DartRefactoringContribution.java View 1 1 chunk +40 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/descriptors/DartRefactoringDescriptor.java View 1 1 chunk +335 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/refactoring/descriptors/RenameDartElementDescriptor.java View 1 2 1 chunk +541 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java View 1 chunk +18 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/dom/ASTNodes.java View 1 1 chunk +945 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/dom/LinkedNodeFinder.java View 1 2 1 chunk +253 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/Checks.java View 1 2 13 chunks +183 lines, -189 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/DartRefactoringArguments.java View 1 1 chunk +53 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/DartRefactoringDescriptorUtil.java View 1 2 1 chunk +253 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/IDartRefactorings.java View 1 2 1 chunk +410 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/RefactoringAvailabilityTester.java View 1 71 chunks +155 lines, -155 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/RefactoringDescriptorComment.java View 1 1 chunk +304 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/RefactoringExecutionStarter.java View 3 chunks +18 lines, -26 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/base/DartStringStatusContext.java View 1 1 chunk +41 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/changes/TextChangeCompatibility.java View 1 chunk +92 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/participants/DartProcessors.java View 1 1 chunk +39 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameAnalyzeUtil.java View 1 1 chunk +492 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameLocalVariableProcessor.java View 1 2 1 chunk +483 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/RenameModifications.java View 6 chunks +16 lines, -33 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/rename/TempOccurrenceAnalyzer.java View 1 chunk +119 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IConfirmQuery.java View 1 chunk +9 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgDestination.java View 1 chunk +17 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgDestinationValidator.java View 1 chunk +20 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgPolicy.java View 1 1 chunk +128 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/reorg/IReorgQueries.java View 1 chunk +26 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/tagging/IDelegateUpdating.java View 1 1 chunk +51 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/tagging/IQualifiedNameUpdating.java View 1 1 chunk +30 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/tagging/ITextUpdating.java View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/Messages.java View 1 chunk +21 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/ResourceUtil.java View 1 chunk +59 lines, -0 lines 0 comments Download
A + editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/Strings.java View 1 2 18 chunks +62 lines, -127 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/util/TextChangeManager.java View 1 chunk +120 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/DartElementLabels.java View 1 10 chunks +20 lines, -26 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RefactorActionGroup.java View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/RenameAction.java View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/actions/SelectionDispatchAction.java View 1 2 3 chunks +1 line, -7 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/actions/ActionUtil.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/actions/WorkbenchRunnableAdapter.java View 1 3 chunks +10 lines, -15 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/DelegateUIHelper.java View 1 1 chunk +113 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/RefactoringExecutionHelper.java View 1 2 1 chunk +232 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/RefactoringSaveHelper.java View 4 chunks +13 lines, -170 lines 0 comments Download
D editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/RefactoringSavePreferences.java View 1 chunk +0 lines, -21 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/RenameSupport.java View 1 2 11 chunks +126 lines, -135 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/TextInputWizardPage.java View 1 1 chunk +187 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/UserInterfaceManager.java View 1 chunk +59 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/UserInterfaceStarter.java View 1 chunk +46 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/actions/RenameDartElementAction.java View 1 2 9 chunks +31 lines, -39 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameInformationPopup.java View 1 2 1 chunk +871 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameInputWizardPage.java View 1 2 1 chunk +340 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameLinkedMode.java View 1 2 1 chunk +534 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameLocalVariableWizard.java View 1 chunk +16 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameRefactoringWizard.java View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameUserInterfaceManager.java View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/RenameUserInterfaceStarter.java View 1 chunk +30 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/ReorgMessages.java View 1 2 1 chunk +116 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/refactoring/reorg/ReorgMessages.properties View 1 2 1 chunk +95 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/AssistContext.java View 1 2 1 chunk +129 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/CorrectionCommandHandler.java View 1 2 1 chunk +151 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/CorrectionMessages.java View 1 2 1 chunk +366 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/CorrectionMessages.properties View 1 2 1 chunk +408 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/DartCorrectionAssistant.java View 1 2 1 chunk +352 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/DartCorrectionProcessor.java View 1 2 1 chunk +546 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/ICommandAccess.java View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickAssistLightBulbUpdater.java View 1 2 1 chunk +269 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/proposals/LinkedNamesAssistProposal.java View 1 2 1 chunk +269 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/util/ExceptionHandler.java View 1 2 chunks +8 lines, -11 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/util/SWTUtil.java View 1 1 chunk +0 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/util/Strings.java View 1 10 chunks +22 lines, -24 lines 0 comments Download
A editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/viewsupport/BasicElementLabels.java View 1 1 chunk +146 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
8 years, 9 months ago (2012-03-22 21:08:42 UTC) #1
messick
Nice to see a lot of progress on renaming! I'm looking forward to being able ...
8 years, 9 months ago (2012-03-23 16:30:12 UTC) #2
scheglov
I've make change to fix problems. No inlike/linked mode yet, will do this in next ...
8 years, 9 months ago (2012-03-23 23:36:28 UTC) #3
messick
Thanks! This is getting close. Looking forward to that final piece, the in-line rename support. ...
8 years, 9 months ago (2012-03-24 02:33:47 UTC) #4
messick
8 years, 9 months ago (2012-03-26 18:12:28 UTC) #5
LGTM!

I recommend moving the AST visitor change into a separate CL and getting Brian
and zundel to review it.

http://codereview.chromium.org/9834028/diff/2005/compiler/java/com/google/dar...
File compiler/java/com/google/dart/compiler/ast/DartVariable.java (right):

http://codereview.chromium.org/9834028/diff/2005/compiler/java/com/google/dar...
compiler/java/com/google/dart/compiler/ast/DartVariable.java:44:
getName().accept(visitor);
This change should have been made long ago.
We have a lot of code that works around its absence.

Powered by Google App Engine
This is Rietveld 408576698