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

Unified Diff: pkg/compiler/lib/src/resolved_visitor.dart

Issue 1043723002: Handle NewExpression in SemanticSendVisitor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased+fix modely.dart Created 5 years, 9 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: pkg/compiler/lib/src/resolved_visitor.dart
diff --git a/pkg/compiler/lib/src/resolved_visitor.dart b/pkg/compiler/lib/src/resolved_visitor.dart
index 13dbd59b40a32525346cb9b97c8e949e80f74738..561746bf17420763e3d7d7c5d7d3df2aec388180 100644
--- a/pkg/compiler/lib/src/resolved_visitor.dart
+++ b/pkg/compiler/lib/src/resolved_visitor.dart
@@ -144,7 +144,8 @@ abstract class NewResolvedVisitor<R> extends BaseResolvedVisitor<R>
BaseBulkMixin<R, dynamic>,
BinaryBulkMixin<R, dynamic>,
PrefixBulkMixin<R, dynamic>,
- PostfixBulkMixin<R, dynamic> {
+ PostfixBulkMixin<R, dynamic>,
+ NewBulkMixin<R, dynamic> {
final ResolvedSemanticDispatcher<R> _semanticDispatcher =
new ResolvedSemanticDispatcher<R>();
@@ -221,6 +222,7 @@ class ResolvedSemanticDispatcher<R> extends Object
SuperBulkMixin<R, ResolvedKindVisitor<R>>,
CompoundBulkMixin<R, ResolvedKindVisitor<R>>,
IndexSetBulkMixin<R, ResolvedKindVisitor<R>>,
+ NewBulkMixin<R, ResolvedKindVisitor<R>>,
ErrorBulkMixin<R, ResolvedKindVisitor<R>>
implements SemanticSendVisitor<R, ResolvedKindVisitor<R>> {
@@ -237,7 +239,8 @@ class ResolvedSemanticDispatcher<R> extends Object
Node node,
String message,
ResolvedKindVisitor<R> visitor) {
- // Set, Compound and IndexSet are not handled by [ResolvedVisitor].
+ // Set, Compound, IndexSet, and NewExpression are not handled by
+ // [ResolvedVisitor].
return bulkHandleError(node, visitor);
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | tests/compiler/dart2js/semantic_visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698