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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java

Issue 10913112: Clean ups for trailing whitespace and block style (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java
index d25a9cce6965de625344608e77335629b24dde8b..0327db2b06ef3dd205341c829e7b625a6f141be0 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/SourceRangeFactory.java
@@ -54,6 +54,14 @@ public class SourceRangeFactory {
}
/**
+ * @return the {@link SourceRange} which start at end of "a" and ends at "end".
+ */
+ public static SourceRange forEndEnd(HasSourceInfo a, int end) {
+ int start = a.getSourceInfo().getEnd();
+ return forStartEnd(start, end);
+ }
+
+ /**
* @return the {@link SourceRange} which start at the end of "startInfo" and has specified length.
*/
public static SourceRange forEndLength(HasSourceInfo startInfo, int length) {

Powered by Google App Engine
This is Rietveld 408576698