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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/Token.java

Issue 10828169: 'Split && condition' quick assist. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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.engine/src/com/google/dart/engine/scanner/Token.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/Token.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/Token.java
index 8801610754dfa18200b74fe2bf8a929e16d0a5d0..1208698bdc1cde7777ed962f16aa6d2d80869c05 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/Token.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/scanner/Token.java
@@ -50,6 +50,17 @@ public class Token {
}
/**
+ * Return the offset from the beginning of the file to the character after last character of the
+ * token.
+ *
+ * @return the offset from the beginning of the file to the first character after last character
+ * of the token
+ */
+ public int getEnd() {
+ return offset + getLength();
+ }
+
+ /**
* Return the number of characters in the node's source range.
*
* @return the number of characters in the node's source range

Powered by Google App Engine
This is Rietveld 408576698