| Index: compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
|
| diff --git a/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java b/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
|
| index bbe70b33136c31eba2a5523b66d895c57323567d..6e0750d054e1c5268bec1ca8422be5599f71b832 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java
|
| @@ -10,6 +10,7 @@ import com.google.dart.compiler.DartSource;
|
| import com.google.dart.compiler.Source;
|
| import com.google.dart.compiler.ast.DartUnit;
|
| import com.google.dart.compiler.common.HasSourceInfo;
|
| +import com.google.dart.compiler.common.SourceInfo;
|
| import com.google.dart.compiler.metrics.CompilerMetrics;
|
| import com.google.dart.compiler.parser.DartScanner.State;
|
|
|
| @@ -101,10 +102,7 @@ public class DartScannerParserContext implements ParserContext {
|
| // handle 0-length tokens, including where there is trailing whitespace
|
| end = start;
|
| }
|
| - node.setSourceLocation(
|
| - source,
|
| - startPos.getLine(), startPos.getCol(),
|
| - start, end - start);
|
| + node.setSourceInfo(new SourceInfo(source, start, end - start));
|
| }
|
| }
|
|
|
|
|