protected override Task <ParsingResult> Parse() { return(Task <ParsingResult> .Factory.StartNew(() => { if (buffer.Length == 0) { return default; } var result = new ParsingResult(); if (buffer.All(line => scriptAnalyzer.AnalyzeLine(line, ref result.FinalScript))) { return result; } result.AddException(scriptAnalyzer.LastException); return result; })); }