Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
index 720ed79084120164a6a5bff99955b66967bcdef7..a119559414b72bb7597707a6f2afb1ffeaf93cde 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart |
@@ -414,16 +414,19 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
@override |
void endTopLevelFields(int count, Token beginToken, Token endToken) { |
debugEvent("TopLevelFields"); |
- doFields(count); |
+ push(count); |
} |
@override |
void endFields(int count, Token beginToken, Token endToken) { |
debugEvent("Fields"); |
- doFields(count); |
+ push(count); |
} |
- void doFields(int count) { |
+ @override |
+ void finishFields() { |
+ debugEvent("finishFields"); |
+ int count = pop(); |
List<FieldBuilder> fields = <FieldBuilder>[]; |
for (int i = 0; i < count; i++) { |
Expression initializer = pop(); |
@@ -470,7 +473,6 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper { |
@override |
void endMember() { |
debugEvent("Member"); |
- checkEmpty(-1); |
} |
@override |