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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/TokenScanner.java

Issue 10704180: Use 'int' instead of Position. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/dom/rewrite/TokenScanner.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/TokenScanner.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/TokenScanner.java
index a30d15b2467a10a540a6a61456f683ff88d53993..917f55862bc19119ea41f1d53cc3543d33ff0d7d 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/TokenScanner.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/TokenScanner.java
@@ -63,7 +63,7 @@ public class TokenScanner {
* @return Returns the offset after the current token
*/
public int getCurrentEndOffset() {
- return scanner.getTokenLocation().getEnd().getPos() + 1;
+ return scanner.getTokenLocation().getEnd() + 1;
}
/**
@@ -77,7 +77,7 @@ public class TokenScanner {
* @return Returns the start offset of the current token
*/
public int getCurrentStartOffset() {
- return scanner.getTokenLocation().getBegin().getPos();
+ return scanner.getTokenLocation().getBegin();
}
/**

Powered by Google App Engine
This is Rietveld 408576698