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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1142873006: Fix bug when using super and prefixes as a parenthesis expression (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/compiler/dart2js_extra/23486_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 9099522ff7102531c518b8bbe808d4e0b737f3ec..762c6f223b6ca06e6575e3d694e0215f77ad6646 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -3360,7 +3360,11 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
visitParenthesizedExpression(ParenthesizedExpression node) {
bool oldSendIsMemberAccess = sendIsMemberAccess;
sendIsMemberAccess = false;
+ var oldCategory = allowedCategory;
+ allowedCategory = ElementCategory.VARIABLE | ElementCategory.FUNCTION
+ | ElementCategory.IMPLIES_TYPE;
visit(node.expression);
+ allowedCategory = oldCategory;
sendIsMemberAccess = oldSendIsMemberAccess;
}
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/23486_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698