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

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

Issue 1702793003: Return List<DartType> from getCurrentTypeArguments(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index 9429f300457da140bd60c7b318a7f5e1ab8476d6..de642322dd8a2635d85fe92cae590127bb5b6858 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -1781,9 +1781,9 @@ class _LibraryResynthesizer {
* method declared as `class C<T, U> { void m<V, W>() { ... } }`, then the
* type parameters will be returned in the order `[V, W, T, U]`.
*/
- List<TypeParameterType> getCurrentTypeArguments({int skipLevels: 0}) {
+ List<DartType> getCurrentTypeArguments({int skipLevels: 0}) {
assert(currentTypeParameters.length >= skipLevels);
- List<TypeParameterType> result = <TypeParameterType>[];
+ List<DartType> result = <DartType>[];
for (int i = currentTypeParameters.length - 1 - skipLevels; i >= 0; i--) {
result.addAll(currentTypeParameters[i]
.map((TypeParameterElement param) => param.type));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698