public override void Write(MatlabWriter writer)
 {
     foreach (var expr in (IEnumerable <MatlabExpression>)Value)
     {
         expr.Write(writer);
     }
 }
 public override void Write(MatlabWriter writer)
 {
     if ((Flags & MatlabStatementFlags.Closing) != 0)
     {
         --writer.IndentLevel;
     }
     base.Write(writer);
     if ((Flags & MatlabStatementFlags.Opening) != 0)
     {
         ++writer.IndentLevel;
     }
 }
        public virtual void Write(MatlabWriter writer)
        {
            var str   = ToString();
            var stmts = str.Split(new char[] { '\n' });

            if (stmts.Length > 0)
            {
                ++writer.IndentLevel;
                foreach (var stmt in stmts)
                {
                    writer.WriteLine(stmt);
                }
                --writer.IndentLevel;
            }
            else
            {
                writer.WriteLine(str);
            }
        }