| Index: compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java b/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| index b14a6819fa66eee466b0776c849437e93eeb2608..edfb46a1577ec3cf61ad3cd56d69449ce67d09a0 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
| @@ -5,7 +5,6 @@
|
| package com.google.dart.compiler.resolver;
|
|
|
| import com.google.dart.compiler.DartCompilationError;
|
| -import com.google.dart.compiler.DartCompilerErrorCode;
|
| import com.google.dart.compiler.DartCompilerListener;
|
| import com.google.dart.compiler.parser.DartScanner.Location;
|
| import com.google.dart.compiler.type.DynamicType;
|
| @@ -60,11 +59,10 @@ public class CoreTypeProviderImplementation implements CoreTypeProvider {
|
| private static InterfaceType getType(String name, Scope scope, DartCompilerListener listener) {
|
| ClassElement element = (ClassElement) scope.findElement(scope.getLibrary(), name);
|
| if (element == null) {
|
| - Location location = null;
|
| DartCompilationError error =
|
| new DartCompilationError(null, Location.NONE,
|
| - DartCompilerErrorCode.CANNOT_BE_RESOLVED, name);
|
| - listener.compilationError(error);
|
| + ResolverErrorCode.CANNOT_BE_RESOLVED, name);
|
| + listener.onError(error);
|
| return Types.newDynamicType();
|
| }
|
| return element.getType();
|
|
|