| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| index b8ac60f401b55b6e9d5053632632ea336ea77367..180c4120b99822beac2a70faf6a403042178a76c 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -854,6 +854,13 @@ public class DartCompiler {
|
| srcCode += "\nvoid assert(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/runtime/object.dart")) {
|
| + srcCode += "\nclass Type {}";
|
| + }
|
| +
|
| DartParser parser = new DartParser(dartSrc, srcCode, diet, libraryPrefixes, context,
|
| context.getCompilerMetrics());
|
| DartUnit unit = parser.parseUnit();
|
|
|