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

Unified Diff: sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart

Issue 363113004: Handle unresolved elements in the new IR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart b/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
index b5d25d38dc0b29a301e28584601206582005625c..f915b5adab80d9f94746f897d09f85194fa10ffd 100644
--- a/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
@@ -205,7 +205,7 @@ class InvokeSuperMethod extends Expression implements Invoke {
/// Non-const call to a constructor. The [target] may be a generative
/// constructor, factory, or redirecting factory.
class InvokeConstructor extends Expression implements Invoke {
- final GenericType type;
+ final DartType type;
final FunctionElement target;
final Reference continuation;
final List<Reference> arguments;
@@ -225,8 +225,9 @@ class InvokeConstructor extends Expression implements Invoke {
List<Definition> args)
: continuation = new Reference(cont),
arguments = _referenceList(args) {
- assert(target.isConstructor);
- assert(type.element == target.enclosingElement);
+ assert(target.isErroneous || target.isConstructor);
+ assert((target.isErroneous && type.isDynamic) ||
+ type.element == target.enclosingElement);
}
accept(Visitor visitor) => visitor.visitInvokeConstructor(this);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698