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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 10949003: Revert r12491 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
===================================================================
--- compiler/java/com/google/dart/compiler/DartCompiler.java (revision 12499)
+++ compiler/java/com/google/dart/compiler/DartCompiler.java (working copy)
@@ -864,6 +864,13 @@
srcCode += "\nvoid " + Elements.ASSERT_FUNCTION_NAME + "(x) {}";
}
+ // inject "Type" type from 1.0 M1 specification
+ // remove once it will be added into SDK
+ // http://code.google.com/p/dart/issues/detail?id=3368
+ if (dartSrc.getUri().toString().equals("dart://core/object.dart")) {
+ srcCode += "\nclass Type {}";
+ }
+
DartParser parser = new DartParser(dartSrc, srcCode, diet, libraryPrefixes, context,
context.getCompilerMetrics());
DartUnit unit = parser.parseUnit();
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698