YamlUtility.Grammar.YamlParser.ParseFoldedLines C# (CSharp) Method

ParseFoldedLines() private method

private ParseFoldedLines ( bool &success ) : string
success bool
return string
        private string ParseFoldedLines(out bool success)
        {
            int errorCount = Errors.Count;
            StringBuilder text = new StringBuilder();
            int start_position = position;

            string str2 = ParseFoldedLine(out success);
            if (success) { text.Append(str2); }
            else
            {
                Error("Failed to parse str2 of FoldedLines.");
                position = start_position;
                return text.ToString();
            }

            while (true)
            {
                while (true)
                {
                    int seq_start_position1 = position;
                    string str = ParseLineFolding(out success);
                    if (success) { text.Append(str); }
                    else
                    {
                        Error("Failed to parse LineFolding of FoldedLines.");
                        break;
                    }

                    str = ParseFoldedLine(out success);
                    if (success) { text.Append(str); }
                    else
                    {
                        Error("Failed to parse FoldedLine of FoldedLines.");
                        position = seq_start_position1;
                    }
                    break;
                }
                if (!success) { break; }
            }
            success = true;

            return text.ToString();
        }
YamlParser