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

Unified Diff: pkg/analyzer/lib/src/kernel/resynthesize.dart

Issue 3009933002: Resynthesize references to type parameters in default expressions 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_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/kernel/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/kernel/resynthesize.dart b/pkg/analyzer/lib/src/kernel/resynthesize.dart
index 30a2197c528642aa97d1b388adf83f0413e2addf..0cbeb8e95a09dd7508c656bb8293dd9a1e3f277f 100644
--- a/pkg/analyzer/lib/src/kernel/resynthesize.dart
+++ b/pkg/analyzer/lib/src/kernel/resynthesize.dart
@@ -423,8 +423,8 @@ class _ExprBuilder {
List<TypeAnnotation> arguments = _buildTypeArguments(type.typeArguments);
return AstTestFactory.typeName3(name, arguments)..type = type;
}
- if (type is DynamicTypeImpl) {
- var identifier = AstTestFactory.identifier3('dynamic')
+ if (type is DynamicTypeImpl || type is TypeParameterType) {
+ var identifier = AstTestFactory.identifier3(type.name)
..staticElement = type.element
..staticType = type;
return AstTestFactory.typeName3(identifier)..type = type;
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698