@@ -67,7 +67,7 @@ public string GetProjectStructure(string projectPath, int indent = 0)
6767 }
6868
6969 /// <summary>
70- /// Pure recursive function to generate directory structure lines.
70+ /// Recursive function to generate directory structure lines (performs I/O) .
7171 /// Uses lazy evaluation via yield return.
7272 /// </summary>
7373 private IEnumerable < string > GetProjectStructureLines ( string directoryPath , ScanContext context , int indent )
@@ -96,7 +96,8 @@ private IEnumerable<string> GetProjectStructureLines(string directoryPath, ScanC
9696 }
9797
9898 /// <summary>
99- /// Pure function to get filtered and sorted directory entries.
99+ /// I/O operation: gets filtered and sorted directory entries.
100+ /// Includes console logging side effects on errors.
100101 /// </summary>
101102 private IEnumerable < string > GetFilteredEntries ( string directoryPath , string rootPath )
102103 {
@@ -120,7 +121,7 @@ private IEnumerable<string> GetFilteredEntries(string directoryPath, string root
120121 }
121122
122123 /// <summary>
123- /// Pure predicate to determine if an entry should be included.
124+ /// Predicate to determine if an entry should be included (may perform I/O) .
124125 /// </summary>
125126 private bool ShouldIncludeEntry ( string entryPath , string rootPath )
126127 {
@@ -172,7 +173,7 @@ public string GetFileContents(string projectPath)
172173 }
173174
174175 /// <summary>
175- /// Pure recursive function to enumerate all files in directory tree.
176+ /// Recursive I/O operation to enumerate all files in directory tree.
176177 /// Uses lazy evaluation via yield return.
177178 /// </summary>
178179 private IEnumerable < string > EnumerateFilesRecursively ( string directory , string rootPath )
@@ -200,7 +201,8 @@ private IEnumerable<string> EnumerateFilesRecursively(string directory, string r
200201 }
201202
202203 /// <summary>
203- /// Gets filtered files from a directory (pure enumeration).
204+ /// I/O operation: gets filtered files from a directory.
205+ /// Includes console logging side effects on errors.
204206 /// </summary>
205207 private IEnumerable < string > GetFilteredFiles ( string directory , string rootPath , EnumerationOptions options )
206208 {
@@ -217,7 +219,7 @@ private IEnumerable<string> GetFilteredFiles(string directory, string rootPath,
217219 }
218220
219221 /// <summary>
220- /// Gets filtered subdirectories from a directory (pure enumeration) .
222+ /// I/O operation: gets filtered subdirectories from a directory.
221223 /// </summary>
222224 private IEnumerable < string > GetFilteredDirectories ( string directory , string rootPath , EnumerationOptions options )
223225 {
@@ -233,7 +235,7 @@ private IEnumerable<string> GetFilteredDirectories(string directory, string root
233235 }
234236
235237 /// <summary>
236- /// Pure predicate to check if a file should be included.
238+ /// Predicate to check if a file should be included (may perform I/O) .
237239 /// </summary>
238240 private bool ShouldIncludeFile ( string filePath , string rootPath )
239241 {
@@ -249,7 +251,7 @@ private bool ShouldIncludeFile(string filePath, string rootPath)
249251 }
250252
251253 /// <summary>
252- /// Pure predicate to check if a directory should be included.
254+ /// Predicate to check if a directory should be included (may perform I/O) .
253255 /// </summary>
254256 private bool ShouldIncludeDirectory ( string dirPath , string rootPath )
255257 {
0 commit comments