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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.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/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
index 5c78fadb8c470725c90a1cecf6bbb911a5b052a9..7c29f6b98354d7f989feefbef8ac8dc414a48a2c 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
@@ -261,7 +261,8 @@ public abstract class TypeAnalyzerTestCase extends TypeTestCase {
}
private DartParser getParser(String string) {
- return new DartParser(new DartScannerParserContext(null, string, listener));
+ DartSourceString source = new DartSourceString("<source string>", string);
+ return new DartParser(new DartScannerParserContext(source, string, listener));
}
private String getResource(String name) {

Powered by Google App Engine
This is Rietveld 408576698