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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java

Issue 9834028: Initial implementation of "Rename Local Variable" refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: LInked/inline mode for rename Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java
index 801db5f28e92d00a46bed4c60af41caca0fb1b40..25da1f5fc1a0bce2fcb0013b77f16a39695427a7 100755
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/refactoring/util/TextEditUtil.java
@@ -17,9 +17,6 @@ import org.eclipse.text.edits.MalformedTreeException;
import org.eclipse.text.edits.MultiTextEdit;
import org.eclipse.text.edits.TextEdit;
-/**
- * @since 3.4
- */
public class TextEditUtil {
/**
@@ -40,7 +37,6 @@ public class TextEditUtil {
*
* @param edit the edit tree to flatten
* @return a list of edits
- * @since 3.4
*/
public static MultiTextEdit flatten(TextEdit edit) {
MultiTextEdit result = new MultiTextEdit();
@@ -65,7 +61,6 @@ public class TextEditUtil {
*
* @param edit the edit to verify
* @return true if edit is minimal
- * @since 3.4
*/
public static boolean isPacked(TextEdit edit) {
if (!(edit instanceof MultiTextEdit)) {
@@ -109,7 +104,6 @@ public class TextEditUtil {
* @return the merged tree
* @throws MalformedTreeException if {@link #overlaps(TextEdit, TextEdit)} returns <b>true</b>
* @see #overlaps(TextEdit, TextEdit)
- * @since 3.4
*/
public static TextEdit merge(TextEdit edit1, TextEdit edit2) {
if (edit1 instanceof MultiTextEdit && !edit1.hasChildren()) {
@@ -134,7 +128,6 @@ public class TextEditUtil {
* @param edit1 the edit to compare against edit2
* @param edit2 the edit to compare against edit1
* @return true of no node overlaps with any other node
- * @since 3.4
*/
public static boolean overlaps(TextEdit edit1, TextEdit edit2) {
if (edit1 instanceof MultiTextEdit && edit2 instanceof MultiTextEdit) {

Powered by Google App Engine
This is Rietveld 408576698