コード例 #1
0
        public override string ToString(string indent, bool last)
        {
            var decoration = GetLogDecoration(indent, last);
            var res        = identifier.ToString(decoration.Indent, true);

            return(res);
        }
コード例 #2
0
        public override string ToString(string indent, bool last)
        {
            var decoration = GetLogDecoration(indent, last);
            var res        = decoration.Prefix + string.Format(" Iteration Foreach\n");

            res += decoration.Prefix + string.Format(" {0}\n", vt);
            res += id.ToString(decoration.Indent, false);
            res += list.ToString(decoration.Indent, false);
            res += statement.ToString(decoration.Indent, true);
            return(res);
        }