16 lines
437 B
C#
Raw Normal View History

namespace CapnpC.CSharp.Generator.Model
{
class Enumerant
{
string _literal;
public TypeDefinition TypeDefinition { get; set; }
public string Literal {
get => _literal;
set => _literal = IdentifierRenamer.ToNonKeyword(value);
}
2020-01-30 21:53:08 +01:00
public string CsLiteral { get; set; }
public ushort? Ordinal { get; set; }
public int CodeOrder { get; set; }
}
}