Example #1
0
        public override string ToString()
        {
            string initializersStr = Initializers?.Count > 0 ? string.Join(" ", Initializers) : "";
            string iteratorsStr    = Iterators?.Count > 0 ? " " + string.Join("; ", Iterators) : "";

            return($"for ({TextUtils.CollectWords(initializersStr, Condition)};{iteratorsStr})\n{{\n{Statement.ToStringWithTrailNL()}}}");
        }