public void BuildHumanReadableFullName(StringBuilder text, HashSet<ITypeDescriptor> stack, uint indent)
{
if (stack.Contains(this))
{
text.Append(Name);
return;
}
stack.Add(this);
text.AppendLine(Name);
AppendIndent(text, indent);
text.Append("enum ");
if (_flags) text.Append("flags ");
text.AppendLine("{");
foreach (var pair in _pairs)
{
AppendIndent(text, indent + 1);
text.Append(pair.Key);
text.Append(" = ");
if (_signed) text.Append((long)pair.Value); else text.Append(pair.Value);
text.AppendLine();
}
AppendIndent(text, indent);
text.Append("}");
}