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

Unified Diff: compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.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: compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java
diff --git a/compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java b/compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java
index fc1f02dc03780855d6a565284bd3ecc422ffe6a7..a0eefdaab75e7d4d219aca91cb515a9c7e41fe4d 100644
--- a/compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java
+++ b/compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java
@@ -55,7 +55,7 @@ public abstract class CompletionHooksParserBase extends AbstractParser {
* productions at fault. Called from begin()
*/
public boolean assertProgress() {
- int currentPosition = position().getPos();
+ int currentPosition = position();
if (currentPosition > maxPositionRange) {
minPositionRange = maxPositionRange;
maxPositionRange = currentPosition;

Powered by Google App Engine
This is Rietveld 408576698