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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java

Issue 994733002: Issue 22465. Mark occurrences only if there are no pending changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java
index 4c39b04e6265d80596e2081e11cff073cb4e477f..db04138f62a11c5a3be6fb03176e1f20308ea6dc 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/Occurrences.java
@@ -67,9 +67,9 @@ public class Occurrences {
this.length = length;
}
- public boolean contains(int x) {
+ public boolean containsInclusive(int x) {
for (int offset : offsets) {
- if (offset <= x && x < offset + length) {
+ if (offset <= x && x <= offset + length) {
return true;
}
}
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698