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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/NodeFinder.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/dom/NodeFinder.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/NodeFinder.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/NodeFinder.java
index 447f141c37e9c071ea57ea5d806d3d4d3288054a..c3e29d30a6316587b2ab105ec4645bc31fe4a391 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/NodeFinder.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/NodeFinder.java
@@ -97,7 +97,7 @@ public class NodeFinder extends ASTVisitor<Void> {
DartScanner scanner = new DartScanner(src);
Token token = scanner.next();
if (token != Token.EOS) {
- int tStart = scanner.getTokenLocation().getBegin().getPos();
+ int tStart = scanner.getTokenLocation().getBegin();
if (tStart == result.getSourceInfo().getOffset() - start) {
int idx = tStart + result.getSourceInfo().getLength();
String nsrc = src.substring(idx, idx + length - 1);

Powered by Google App Engine
This is Rietveld 408576698