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

Unified Diff: runtime/lib/mirrors.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 | « no previous file | runtime/vm/dart.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index f39effa54a4645e52178c9939bde1f8652428a52..5eb63fdcaf6023717ffc2bb7c75476a927245e15 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -1057,8 +1057,10 @@ DEFINE_NATIVE_ENTRY(ClassMirror_members, 2) {
Field& field = Field::Handle();
for (intptr_t i = 0; i < num_fields; i++) {
field ^= fields.At(i);
- member_mirror = CreateVariableMirror(field, owner_mirror);
- member_mirrors.Add(member_mirror);
+ if (!field.is_synthetic()) {
+ member_mirror = CreateVariableMirror(field, owner_mirror);
+ member_mirrors.Add(member_mirror);
+ }
}
Function& func = Function::Handle();
@@ -1145,8 +1147,10 @@ DEFINE_NATIVE_ENTRY(LibraryMirror_members, 2) {
}
} else if (entry.IsField()) {
const Field& field = Field::Cast(entry);
- member_mirror = CreateVariableMirror(field, owner_mirror);
- member_mirrors.Add(member_mirror);
+ if (!field.is_synthetic()) {
+ member_mirror = CreateVariableMirror(field, owner_mirror);
+ member_mirrors.Add(member_mirror);
+ }
} else if (entry.IsFunction()) {
const Function& func = Function::Cast(entry);
if (func.kind() == RawFunction::kRegularFunction ||
« no previous file with comments | « no previous file | runtime/vm/dart.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698