예제 #1
0
        public override string ToString()
        {
            if (comment == null)
            {
                return(string.Empty);
            }

            if (Alignment == Alignment.Right)
            {
                return($"{CodeLine.Tab(2)}//{comment}");
            }
            else
            {
                return($"//{comment}");
            }
        }
예제 #2
0
 public string ToString(int indent)
 {
     return(string.Join(Environment.NewLine, lines.Select(line => CodeLine.Tab(indent) + line.ToString())));
 }