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

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

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 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/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));
}
}

Powered by Google App Engine
This is Rietveld 408576698