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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartScanner.java

Issue 9015002: Check for abstract method with body and top-level abstract elements, issue 871 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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/DartScanner.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartScanner.java b/compiler/java/com/google/dart/compiler/parser/DartScanner.java
index 7e0100f4154e4f4c1d20dc6b48871716a428d596..84a75a5fe62e210273335093b98de624c8ae7c06 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartScanner.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartScanner.java
@@ -63,6 +63,14 @@ public class DartScanner {
}
}
+ /**
+ * @return the {@link Position} which is advanced on the given number of columns, on the same
+ * line.
+ */
+ public Position getAdvancedColumns(int cols) {
+ return new Position(pos + cols, line, col + cols);
+ }
+
@Override
public String toString() {
return line + "," + col + "@" + pos;

Powered by Google App Engine
This is Rietveld 408576698