memberHierarchy

This commit is contained in:
Fangrui Song 2018-02-25 16:24:53 -08:00
parent 8c32839362
commit bfcab88090

View File

@ -115,6 +115,9 @@ void Expand(MessageHandler* m,
const QueryVar::Def* def1 = var.AnyDef();
Out_CqueryMemberHierarchy::Entry entry1;
entry1.id = def1->type ? *def1->type : QueryTypeId();
if (detailed_name)
entry1.fieldName = def1->detailed_name;
else
entry1.fieldName = def1->ShortName();
Expand(m, &entry1, detailed_name, levels - 1);
entry->children.push_back(std::move(entry1));