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

Unified Diff: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart

Issue 814833008: dart2js: rename Elements.isErroneousElement to Elements.isErroneous. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
index 7c7b86707be7eb116857222f3f56d8ceb1755b40..0a3060e0f5377cd2cb0cecc260945b554dfa1e16 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -855,7 +855,7 @@ class SimpleTypeInferrerVisitor<T>
ArgumentsTypes operatorArguments = new ArgumentsTypes<T>([rhsType], null);
T getterType;
T newType;
- if (Elements.isErroneousElement(element)) {
+ if (Elements.isErroneous(element)) {
getterType = types.dynamicType;
newType = types.dynamicType;
} else if (Elements.isStaticOrTopLevelField(element)) {
@@ -904,7 +904,7 @@ class SimpleTypeInferrerVisitor<T>
T rhsType,
ast.Node rhs) {
ArgumentsTypes arguments = new ArgumentsTypes<T>([rhsType], null);
- if (Elements.isErroneousElement(element)) {
+ if (Elements.isErroneous(element)) {
// Code will always throw.
} else if (Elements.isStaticOrTopLevelField(element)) {
handleStaticSend(node, setterSelector, element, arguments);
@@ -1123,7 +1123,7 @@ class SimpleTypeInferrerVisitor<T>
return visitDynamicSend(node);
} else if (Elements.isStaticOrTopLevelFunction(element)) {
return handleStaticSend(node, selector, element, null);
- } else if (Elements.isErroneousElement(element)) {
+ } else if (Elements.isErroneous(element)) {
return types.dynamicType;
} else if (element.isLocal) {
LocalElement local = element;
@@ -1282,7 +1282,7 @@ class SimpleTypeInferrerVisitor<T>
}
T visitRedirectingFactoryBody(ast.RedirectingFactoryBody node) {
Element element = elements.getRedirectingTargetConstructor(node);
- if (Elements.isErroneousElement(element)) {
+ if (Elements.isErroneous(element)) {
recordReturnType(types.dynamicType);
} else {
// We don't create a selector for redirecting factories, and
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698