Пример #1
0
void CVTypeDumperImpl::visitStaticDataMember(TypeLeafKind Leaf,
        StaticDataMemberRecord &Field) {
    DictScope S(W, "StaticDataMember");
    printMemberAttributes(Field.getAccess(), MethodKind::Vanilla,
                          MethodOptions::None);
    printTypeIndex("Type", Field.getType());
    W.printString("Name", Field.getName());
    Name = Field.getName();
}
Пример #2
0
Error TypeDumpVisitor::visitKnownMember(CVMemberRecord &CVR,
                                        StaticDataMemberRecord &Field) {
  printMemberAttributes(Field.getAccess(), MethodKind::Vanilla,
                        MethodOptions::None);
  printTypeIndex("Type", Field.getType());
  W->printString("Name", Field.getName());
  return Error::success();
}