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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_types.dart

Issue 32203002: Fix crash https://code.google.com/p/dart/issues/detail?id=14014: remove what seems to be obsolete c… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « sdk/lib/_internal/compiler/implementation/closure.dart ('k') | tests/language/function_type2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_types.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/dart_types.dart (revision 28922)
+++ sdk/lib/_internal/compiler/implementation/dart_types.dart (working copy)
@@ -669,6 +669,19 @@
return _findTypeVariableOccurrence(namedParameterTypes);
}
+ void forEachTypeVariable(f(TypeVariableType variable)) {
Johnni Winther 2013/10/21 15:13:49 Good catch!
+ returnType.forEachTypeVariable(f);
+ parameterTypes.forEach((DartType type) {
+ type.forEachTypeVariable(f);
+ });
+ optionalParameterTypes.forEach((DartType type) {
+ type.forEachTypeVariable(f);
+ });
+ namedParameterTypes.forEach((DartType type) {
+ type.forEachTypeVariable(f);
+ });
+ }
+
accept(DartTypeVisitor visitor, var argument) {
return visitor.visitFunctionType(this, argument);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/closure.dart ('k') | tests/language/function_type2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698