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

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

Issue 13084013: Handle assignability for Send and SendSet (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2dart bugs. Created 7 years, 7 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
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/parser_helper.dart
diff --git a/tests/compiler/dart2js/parser_helper.dart b/tests/compiler/dart2js/parser_helper.dart
index ec96f0e6b09346f981f0296c87ede4720935d245..3ba38e91c6a4c8134fe6b60481bd6dd4fadf1190 100644
--- a/tests/compiler/dart2js/parser_helper.dart
+++ b/tests/compiler/dart2js/parser_helper.dart
@@ -78,10 +78,17 @@ class MockFile extends SourceFile {
: super('<string>', text);
}
+var sourceCounter = 0;
+
Link<Element> parseUnit(String text, Compiler compiler,
- LibraryElement library) {
+ LibraryElement library,
+ [void registerSource(Uri uri, String source)]) {
Token tokens = scan(text);
- Uri uri = new Uri.fromComponents(scheme: "source");
+ Uri uri =
+ new Uri.fromComponents(scheme: "source", path: '${++sourceCounter}');
+ if (registerSource != null) {
+ registerSource(uri, text);
+ }
var script = new Script(uri, new MockFile(text));
var unit = new CompilationUnitElementX(script, library);
int id = 0;
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698