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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 214373002: Correctly recognize type literals in literal lists and maps in an invocation context. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | tests/language/first_class_types_literals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index 1157c78fc7ac4aeb9eda3315023115df4834d75e..51a468952ef8fb65b1469bf056f39ae43fe1162e 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -3187,6 +3187,9 @@ class ResolverVisitor extends MappingVisitor<Element> {
}
visitLiteralList(LiteralList node) {
+ bool oldSendIsMemberAccess = sendIsMemberAccess;
+ sendIsMemberAccess = false;
+
NodeList arguments = node.typeArguments;
DartType typeArgument;
if (arguments != null) {
@@ -3221,6 +3224,8 @@ class ResolverVisitor extends MappingVisitor<Element> {
if (node.isConst()) {
analyzeConstant(node);
}
+
+ sendIsMemberAccess = false;
}
visitConditional(Conditional node) {
@@ -3401,6 +3406,9 @@ class ResolverVisitor extends MappingVisitor<Element> {
}
visitLiteralMap(LiteralMap node) {
+ bool oldSendIsMemberAccess = sendIsMemberAccess;
+ sendIsMemberAccess = false;
+
NodeList arguments = node.typeArguments;
DartType keyTypeArgument;
DartType valueTypeArgument;
@@ -3445,6 +3453,8 @@ class ResolverVisitor extends MappingVisitor<Element> {
if (node.isConst()) {
analyzeConstant(node);
}
+
+ sendIsMemberAccess = false;
}
visitLiteralMapEntry(LiteralMapEntry node) {
« no previous file with comments | « no previous file | tests/language/first_class_types_literals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698