Beispiel #1
0
 internal ResultLineModel(ResultFileModel file, uint line, uint column, string content)
 {
     File    = file;
     Line    = line;
     Column  = column;
     Content = content;
 }
Beispiel #2
0
        internal void AddRipGrepOutput(string output)
        {
            var file = output.Split(":".ToCharArray(), 2);

            if (file.Length != 1 && file.Length != 2)
            {
                return;
            }

            file[0] = System.IO.Path.Combine(BasePath, file[0]);

            ResultFileModel resultFile = null;

            if (!Files.TryGetValue(file[0], out resultFile))
            {
                resultFile = new ResultFileModel(this, file[0]);
                Files.Add(file[0], resultFile);
                ResultFiles.Add(resultFile);
            }

            if (file.Length == 2)
            {
                resultFile.AddRipGrepOutput(file[1]);
            }
        }