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

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

Issue 2695633004: Handle top-level getters and setters in parts. (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/test/fasta/kompile.status » ('j') | pkg/front_end/test/fasta/testing.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/source_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
index 97331f83ccb5675bd049af062f01ec1f11cf05d7..4da1f859e4b80b894a481c9af7bc7867f2a5433e 100644
--- a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart
@@ -283,7 +283,11 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
}
}
part.members.forEach((String name, Builder builder) {
- addBuilder(name, builder, -1);
+ if (builder.next != null) {
+ assert(builder.next.next == null);
+ addBuilder(name, builder.next, builder.next.charOffset);
+ }
+ addBuilder(name, builder, builder.charOffset);
});
types.addAll(part.types);
constructorReferences.addAll(part.constructorReferences);
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/kompile.status » ('j') | pkg/front_end/test/fasta/testing.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698