We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f63c9fa + 3a8d468 commit 7429fa7Copy full SHA for 7429fa7
csharp/extractor/Semmle.Extraction.CSharp/Extractor/Extractor.cs
@@ -284,9 +284,14 @@ public static IEnumerable<Action> ReadSyntaxTrees(IEnumerable<string> sources, A
284
try
285
{
286
using var file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
287
- var st = CSharpSyntaxTree.ParseText(SourceText.From(file, encoding), parseOptions, path);
+ analyser.Logger.Log(Severity.Trace, $"Parsing source file: '{path}'");
288
+ var tree = CSharpSyntaxTree.ParseText(SourceText.From(file, encoding), parseOptions, path);
289
+ analyser.Logger.Log(Severity.Trace, $"Source file parsed: '{path}'");
290
+
291
lock (ret)
- ret.Add(st);
292
+ {
293
+ ret.Add(tree);
294
+ }
295
}
296
catch (IOException ex)
297
0 commit comments