protected override void GenerateField(CodeMemberField e)
{
if (!this.IsCurrentDelegate && !this.IsCurrentInterface)
{
if (this.IsCurrentEnum)
{
if (e.CustomAttributes.Count > 0)
{
this.GenerateAttributes(e.CustomAttributes);
}
this.OutputIdentifier(e.Name);
if (e.InitExpression != null)
{
base.Output.Write(" := ");
this.GenerateExpression(e.InitExpression);
}
base.Output.WriteLine();
}
else
{
if (e.CustomAttributes.Count > 0)
{
this.GenerateAttributes(e.CustomAttributes);
}
this.OutputMemberAccessModifier(e.Attributes);
this.OutputFieldScopeModifier(e.Attributes);
this.OutputIdentifier(e.Name);
if (e.InitExpression != null)
{
base.Output.Write(" := ");
this.GenerateExpression(e.InitExpression);
}
base.Output.Write(" AS ");
this.OutputType(e.Type);
base.Output.WriteLine();
}
}
}