Index: pkg/dart_parser/lib/src/parser.dart |
diff --git a/pkg/dart_parser/lib/src/parser.dart b/pkg/dart_parser/lib/src/parser.dart |
index f713fd02b2117ad32396f6add1b3f31e4f27ed98..bc9988dcd3272b6f4855f346b46879e465176402 100644 |
--- a/pkg/dart_parser/lib/src/parser.dart |
+++ b/pkg/dart_parser/lib/src/parser.dart |
@@ -1241,6 +1241,8 @@ class Parser { |
listener.beginFieldInitializer(token); |
token = parseExpression(token.next); |
listener.endFieldInitializer(assignment); |
+ } else { |
+ listener.handleNoFieldInitializer(token); |
} |
return token; |
} |