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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Resolver.java

Issue 9384013: Remove DartIsolateStubGenerator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: compiler/java/com/google/dart/compiler/resolver/Resolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index af957a59bb4873b0ea7fae3acec95ffcc8560538..25395365b4667f0d0808ef66248e0ab6118fec71 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1007,9 +1007,7 @@ public class Resolver {
}
}
if (isStaticContextOrInitializer()) {
- if (!context.shouldWarnOnNoSuchType()) {
- onError(x, ResolverErrorCode.CANNOT_BE_RESOLVED, name);
- }
+ onError(x, ResolverErrorCode.CANNOT_BE_RESOLVED, name);
}
} else {
element = checkResolvedIdentifier(x, isQualifier, scope, name, element);
@@ -1691,9 +1689,7 @@ public class Resolver {
private ConstructorElement checkIsConstructor(DartNewExpression source, Element element) {
if (!ElementKind.of(element).equals(ElementKind.CONSTRUCTOR)) {
- if (!context.shouldWarnOnNoSuchType()) {
- onError(source.getConstructor(), ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
- }
+ onError(source.getConstructor(), ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
return null;
}
return (ConstructorElement) element;

Powered by Google App Engine
This is Rietveld 408576698