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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 925943002: Refactor SourceFile, SourceFileProvider and SourceLocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index f210f1eff16b5576f5bf04bd4852e6475c9119e8..978f924daa3a37acbf0b58c73b6e9a22489acc45 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -377,7 +377,7 @@ api.DiagnosticHandler createHandler(MockCompiler compiler, String text,
if (kind == api.Diagnostic.VERBOSE_INFO && !verbose) return;
SourceFile sourceFile;
if (uri == null) {
- sourceFile = new StringSourceFile('analysis', text);
+ sourceFile = new StringSourceFile.fromName('analysis', text);
} else {
sourceFile = compiler.sourceFiles[uri.toString()];
}

Powered by Google App Engine
This is Rietveld 408576698