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

Unified Diff: runtime/vm/parser.cc

Issue 1868803002: Use symbols when looking up fields in a class (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 569152283b4f545cf0ce62443619786f17f82723..3581662c14f696f979b44ba1988a2f582f1766d9 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -4794,7 +4794,7 @@ void Parser::ParseEnumDefinition(const Class& cls) {
// Create a static field that contains the list of enumeration names.
// Clone the _enum_names field from the helper class.
Field& names_field = Field::Handle(Z,
- helper_class.LookupStaticField(Symbols::_EnumNames()));
+ helper_class.LookupStaticFieldAllowPrivate(Symbols::_EnumNames()));
ASSERT(!names_field.IsNull());
names_field = names_field.Clone(cls);
enum_members.AddField(names_field);
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | runtime/vm/parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698