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

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

Issue 2987503003: Further integration of front end type inference into analyzer. (Closed)
Patch Set: Created 3 years, 5 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/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
« no previous file with comments | « pkg/analyzer/lib/src/fasta/resolution_storer.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698