Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 03b863b882b8a318d9c0c68bb80d27e1b59f0f36..e4c62363e1fc3a0af74d742b806234d98e95aca4 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -3554,6 +3554,7 @@ void Parser::ParseFieldDefinition(ClassDesc* members, MemberDesc* field) { |
field->has_static, |
field->has_final, |
field->has_const, |
+ false, // Not synthetic. |
current_class(), |
field->name_pos); |
class_field.set_type(*field->type); |
@@ -4691,6 +4692,7 @@ void Parser::ParseTopLevelVariable(TopLevel* top_level, |
// Const fields are implicitly final. |
const bool is_final = is_const || (CurrentToken() == Token::kFINAL); |
const bool is_static = true; |
+ const bool is_synthetic = false; |
const AbstractType& type = AbstractType::ZoneHandle(I, |
ParseConstFinalVarOrType(ClassFinalizer::kResolveTypeParameters)); |
Field& field = Field::Handle(I); |
@@ -4719,7 +4721,7 @@ void Parser::ParseTopLevelVariable(TopLevel* top_level, |
var_name.ToCString()); |
} |
- field = Field::New(var_name, is_static, is_final, is_const, |
+ field = Field::New(var_name, is_static, is_final, is_const, is_synthetic, |
current_class(), name_pos); |
field.set_type(type); |
field.set_value(Instance::Handle(I, Instance::null())); |