コード例 #1
0
        /// <summary>Indents subsequent generated code.</summary>
        /// <param name="source">The source.</param>
        /// <param name="count">The number of times to indent.</param>
        public static TextTransformation Indent(this TextTransformation source, int count = 1)
        {
            for (int index = 0; index < count; ++index)
            {
                source.PushIndent("\t");
            }

            return(source);
        }
 public static void Indent(this TextTransformation textTransformation)
 {
     textTransformation.PushIndent(TabCharacter);
 }