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

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

Issue 1097933004: Deprecate ResolvedVisitor.visitTypeLiteralSend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/resolved_visitor.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 851cde8ace5ec26d4966b8755be4647c2645396d..653147ae7f8e590cfb40b82e841d65ee7bf924ba 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -1032,15 +1032,13 @@ class SimpleTypeInferrerVisitor<T>
}
@override
- T visitTypeLiteralSend(ast.Send node) {
- if (node.isCall) {
- // This is reached when users forget to put a `new` in front of a type
- // literal. The emitter will generate an actual call (even though it is
- // likely invalid), and for that it needs to have the arguments processed
- // as well.
- analyzeArguments(node.arguments);
- }
- return super.visitTypeLiteralSend(node);
+ T handleTypeLiteralInvoke(ast.NodeList arguments) {
+ // This is reached when users forget to put a `new` in front of a type
+ // literal. The emitter will generate an actual call (even though it is
+ // likely invalid), and for that it needs to have the arguments processed
+ // as well.
+ analyzeArguments(arguments.nodes);
+ return super.handleTypeLiteralInvoke(arguments);
}
T visitStaticSend(ast.Send node) {
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/resolved_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698