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

Unified Diff: runtime/vm/parser.cc

Issue 363473004: Hide synthetic metadata field exposed in r35926. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « runtime/vm/object_test.cc ('k') | tests/lib/mirrors/regress_19731_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « runtime/vm/object_test.cc ('k') | tests/lib/mirrors/regress_19731_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698