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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 3004163002: Don't treat typedef-typed formal parameters as funtion-type from resynthesize from Kernel. (Closed)
Patch Set: Created 3 years, 4 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/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index e93f63573437ff5f93617264e8dbe9ae32a2d650..58d955db59dd29d40f3033049aa0abd2bd5fe26f 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -8481,7 +8481,7 @@ class ParameterElementImpl extends VariableElementImpl
if (_kernel != null && _type == null) {
kernel.DartType type = _kernel.type;
_type = enclosingUnit._kernelContext.getType(this, type);
- if (type is kernel.FunctionType) {
+ if (type is kernel.FunctionType && type.typedefReference == null) {
_parameters = new List<ParameterElement>(
type.positionalParameters.length + type.namedParameters.length);
int index = 0;
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698