Exemplo n.º 1
0
 public List<string> ReadCodeFile(string rootPath)
 {
     var access = new FileAccess();
     List<string> filePaths = access.GetFilePathList(null);
     if (filePaths != null)
     {
         access.GetFileList(filePaths);
         foreach (string filePath in filePaths)
         {
             if (!filePath.Contains("CodeReader"))
             {
                 //continue;
             }
             string fileContent = access.GetFileContent(filePath).ToString();
             fileContents.Add(fileContent);
             codeSections.Add(new CodeSection(filePath, fileContent, 0, 0));
         }
     }
     foreach (CodeSection codeSection in codeSections)
     {
         GetIdentifier(codeSection);
         ConvertToNaturalLanguage(codeSection);
     }
     return null;
 }