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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 2691653003: Compute bounds of type variables. (Closed)
Patch Set: Created 3 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
Index: pkg/front_end/lib/src/fasta/source/source_loader.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart
index 9abd7ab983b0228168c1752d76957e5be7eb4e67..f323843b3e32c05b2cb220b3321eca2168dfdf6a 100644
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart
@@ -244,6 +244,14 @@ class SourceLoader<L> extends Loader<L> {
ticker.logMs("Resolved $count constructors");
}
+ void finishTypeVariables(ClassBuilder object) {
+ int count = 0;
+ builders.forEach((Uri uri, LibraryBuilder library) {
+ count += library.finishTypeVariables(object);
+ });
+ ticker.logMs("Resolved $count type-variable bounds");
+ }
+
/// Returns all the supertypes (including interfaces) of [cls]
/// transitively. Includes [cls].
Set<ClassBuilder> allSupertypes(ClassBuilder cls) {

Powered by Google App Engine
This is Rietveld 408576698