public Dictionary <string, string> Process(string lineString) { Dictionary <string, string> dictionary = new Dictionary <string, string>(); if (!IsMatch(lineString)) { return((NextLineProcessor == null) ? dictionary : NextLineProcessor.Process(lineString)); } return(Parse(lineString)); }
private async IAsyncEnumerable <string> GetProcessedLinesAsync(ILineReader reader) { string?line; while ((line = await reader.ReadLineAsync()) != null) { var processResult = _patcher.Process(line); if (processResult.LineAction != LineAction.Remove) { yield return(processResult.Line); } } }
public void Visit(TextLine line) { _processor.Process(line); }