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

ParseChompedLineBreak() private method

private ParseChompedLineBreak ( bool &success ) : string
success bool
return string
        private string ParseChompedLineBreak(out bool success)
        {
            int errorCount = Errors.Count;
            ErrorStatck.Push(errorCount); errorCount = Errors.Count;
            StringBuilder text = new StringBuilder();

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

                    while (true)
                    {
                        while (true)
                        {
                            int seq_start_position2 = position;
                            ParseIgnoredSpace(out success);

                            str = ParseReservedLineBreak(out success);
                            if (success) { text.Append(str); }
                            else
                            {
                                Error("Failed to parse ReservedLineBreak of ChompedLineBreak.");
                                position = seq_start_position2;
                            }
                            break;
                        }
                        if (!success) { break; }
                    }
                    success = true;
                    break;
                }
                if (success) { ClearError(errorCount); break; }

                success = !Input.HasInput(position);
                if (success) { ClearError(errorCount); break; }

                break;
            }
            errorCount = ErrorStatck.Pop();
            return Chomp(text.ToString());
        }
YamlParser