Example #1
0
Error TypeDumpVisitor::visitKnownMember(CVMemberRecord &CVR,
                                        EnumeratorRecord &Enum) {
  printMemberAttributes(Enum.getAccess(), MethodKind::Vanilla,
                        MethodOptions::None);
  W->printNumber("EnumValue", Enum.getValue());
  W->printString("Name", Enum.getName());
  return Error::success();
}
Example #2
0
void CVTypeDumperImpl::visitEnumerator(TypeLeafKind Leaf,
                                       EnumeratorRecord &Enum) {
    DictScope S(W, "Enumerator");
    printMemberAttributes(Enum.getAccess(), MethodKind::Vanilla,
                          MethodOptions::None);
    W.printNumber("EnumValue", Enum.getValue());
    W.printString("Name", Enum.getName());
    Name = Enum.getName();
}