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

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

Issue 925943002: Refactor SourceFile, SourceFileProvider and SourceLocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. 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/memory_source_file_helper.dart
diff --git a/tests/compiler/dart2js/memory_source_file_helper.dart b/tests/compiler/dart2js/memory_source_file_helper.dart
index 827e5c1563c5b220dfd68ac4bdf5182f8ded9c5d..4efb8ad4466abe0c4d9e1746d5d2ce00c2e1da7c 100644
--- a/tests/compiler/dart2js/memory_source_file_helper.dart
+++ b/tests/compiler/dart2js/memory_source_file_helper.dart
@@ -35,8 +35,8 @@ class MemorySourceFileProvider extends SourceFileProvider {
if (source == null) {
return new Future.error(new Exception('No such file $resourceUri'));
}
- String resourceName = '$resourceUri';
- this.sourceFiles[resourceName] = new StringSourceFile(resourceName, source);
+ this.sourceFiles[resourceUri] =
+ new StringSourceFile.fromUri(resourceUri, source);
return new Future.value(source);
}
« no previous file with comments | « tests/compiler/dart2js/backend_dart/dart_printer_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698