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

Unified Diff: pkg/front_end/lib/src/fasta/builder/class_builder.dart

Issue 2695453002: Generalize DeclarationBuilder.resolveTypes. (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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/builder/class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/class_builder.dart b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
index ea3bb3f3959e4b77493f00e6faede1f133b33d18..926a70818d6a7cabdcac93182c50c432267cf89f 100644
--- a/pkg/front_end/lib/src/fasta/builder/class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/class_builder.dart
@@ -30,8 +30,8 @@ abstract class ClassBuilder<T extends TypeBuilder, R>
ClassBuilder(
List<MetadataBuilder> metadata, int modifiers,
String name, this.typeVariables, this.supertype, this.interfaces,
- this.members, List<T> types, LibraryBuilder parent, int charOffset)
- : super(metadata, modifiers, name, types, parent, charOffset);
+ this.members, LibraryBuilder parent, int charOffset)
+ : super(metadata, modifiers, name, parent, charOffset);
List<ConstructorReferenceBuilder> get constructorReferences => null;
@@ -39,19 +39,6 @@ abstract class ClassBuilder<T extends TypeBuilder, R>
Map<String, Builder> get membersInScope => members;
- int resolveTypes(LibraryBuilder library) {
- Scope scope;
- int count = 0;
- if (types != null) {
- scope = computeInstanceScope(library.scope);
- for (T t in types) {
- t.resolveIn(scope);
- }
- count += types.length;
- }
- return count;
- }
-
int resolveConstructors(LibraryBuilder library) {
if (constructorReferences == null) return 0;
Scope scope = computeInstanceScope(library.scope);
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/dynamic_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698