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(); |
} |
/** |