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

Unified Diff: tests/utils/src/DummyCompilerTest.dart

Issue 10091037: Clean up handling of types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. Created 8 years, 8 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/utils/src/DummyCompilerTest.dart
diff --git a/tests/utils/src/DummyCompilerTest.dart b/tests/utils/src/DummyCompilerTest.dart
index 20155cc6e77af1e2b1f3825d8ad7218b7d8b52c3..a5e85a0aad4cf2ad715e2dac4b9e682377fa7bf6 100644
--- a/tests/utils/src/DummyCompilerTest.dart
+++ b/tests/utils/src/DummyCompilerTest.dart
@@ -12,8 +12,25 @@ Future<String> provider(Uri uri) {
String source;
if (uri.scheme == "main") {
source = "main() {}";
+ } else if (uri.scheme == "lib") {
+ if (uri.path.endsWith("/core.dart")) {
+ source = """#library('core');
+ class Object{}
+ class bool {}
+ class num {}
+ class int {}
+ class double{}
+ class String{}
+ class Function{}
+ class List {}
+ class Closure {}
+ class Dynamic {}
+ class Null {}""";
+ } else {
+ source = "#library('lib');";
+ }
} else {
- source = "#library('lib');";
+ throw "unexpected URI $uri";
}
completer.complete(source);
return completer.future;
« lib/compiler/implementation/typechecker.dart ('K') | « lib/compiler/implementation/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698