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

Unified Diff: pkg/analyzer/lib/src/fasta/resolution_applier.dart

Issue 2982323003: Implement AstBuilder integration for parenthesized expressions. (Closed)
Patch Set: Created 3 years, 5 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 | pkg/front_end/testcases/ast_builder.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/resolution_applier.dart
diff --git a/pkg/analyzer/lib/src/fasta/resolution_applier.dart b/pkg/analyzer/lib/src/fasta/resolution_applier.dart
index f6b09e8fcabf4c2da380b8567472d0826da60dc4..3624811ffc8b13a58491e1bbf1402c078eabc927 100644
--- a/pkg/analyzer/lib/src/fasta/resolution_applier.dart
+++ b/pkg/analyzer/lib/src/fasta/resolution_applier.dart
@@ -44,6 +44,12 @@ class ResolutionApplier extends GeneralizingAstVisitor {
node.staticType = _getTypeFor(node.methodName);
}
+ @override
+ void visitParenthesizedExpression(ParenthesizedExpression node) {
+ node.visitChildren(this);
+ node.staticType = node.expression.staticType;
+ }
+
@override
void visitVariableDeclaration(VariableDeclaration node) {
if (node.parent is VariableDeclarationList &&
« no previous file with comments | « no previous file | pkg/front_end/testcases/ast_builder.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698