| 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;
|
|
|