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

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

Issue 11346004: Issue 6201. Clean up to replace 'interface' with 'abstract class' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/util/SourceRangeUtils.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/SourceRangeUtils.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/SourceRangeUtils.java
index edf55568c657e501e91919d44867e1d695ddce0d..15bfa60202e12973f106202754f39d71bb11a323 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/SourceRangeUtils.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/SourceRangeUtils.java
@@ -57,6 +57,13 @@ public class SourceRangeUtils {
}
/**
+ * @return the instance of {@link SourceRange} with end moved on "delta".
+ */
+ public static SourceRange getMoveEnd(SourceRange s, int delta) {
+ return new SourceRangeImpl(s.getOffset(), s.getLength() + delta);
+ }
+
+ /**
* @return <code>true</code> if two given {@link SourceRange}s are intersecting.
*/
public static boolean intersects(SourceRange a, SourceRange b) {

Powered by Google App Engine
This is Rietveld 408576698