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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart

Issue 2792453003: Remove classMembers getter. (Closed)
Patch Set: Created 3 years, 9 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/source/source_library_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/kernel/kernel_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
index 60e05d621d6886d26bfd7a327719a3eef74e29fc..d7598fd056935e29db2a8ea7d4acfe8a774c18ce 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
@@ -101,6 +101,8 @@ class KernelLibraryBuilder
KernelTypeBuilder supertype,
List<KernelTypeBuilder> interfaces,
int charOffset) {
+ assert(currentDeclaration.parent == libraryDeclaration);
+ Map<String, MemberBuilder> members = currentDeclaration.members;
ClassBuilder cls = new SourceClassBuilder(
metadata,
modifiers,
@@ -108,12 +110,12 @@ class KernelLibraryBuilder
typeVariables,
supertype,
interfaces,
- classMembers,
+ members,
this,
new List<ConstructorReferenceBuilder>.from(constructorReferences),
charOffset);
constructorReferences.clear();
- classMembers.forEach((String name, MemberBuilder builder) {
+ members.forEach((String name, MemberBuilder builder) {
while (builder != null) {
builder.parent = cls;
builder = builder.next;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/source_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698