protected override void LLWrite(ICodeWriter writer, object o)
 {
     writer.BeginNewLine(true);
     if (CaseExpr != null)
     {
         writer.Write("case ", true);
         CaseExpr.WriteAll(writer);
     }
     else
     {
         writer.Write("default", true);
     }
     writer.Write(" : ", true);
     if (Actions != null)
     {
         if (Actions is ICodeElementSet)
         {
             writer.EndLine();
             writer.Indent();
             writer.BeginNewLine(true);
         }
         Actions.WriteAll(writer);
         writer.EndLine();
         if (Actions is ICodeElementSet)
         {
             writer.Exdent();
         }
     }
 }
Beispiel #2
0
        public override void EndWrite(ICodeWriter writer, object o)
        {
            if (indent)
            {
                writer.Exdent();
            }
            if (EndDecoration != null)
            {
                if (endOnOwnLine)
                {
                    writer.BeginNewLine(true);
                }
                writer.Write(EndDecoration, true);
                if (endOnOwnLine)
                {
                    writer.EndLine();
                }
            }

            base.EndWrite(writer, o);
        }