mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Cleanup implementation.
This commit is contained in:
@@ -66,9 +66,6 @@ namespace Semmle.Extraction.CSharp
|
||||
{
|
||||
foreach (var assembly in compilation.References.OfType<PortableExecutableReference>())
|
||||
{
|
||||
// CIL first - it takes longer.
|
||||
if (options.CIL)
|
||||
extractionTasks.Add(() => DoExtractCIL(assembly));
|
||||
extractionTasks.Add(() => DoAnalyseReferenceAssembly(assembly));
|
||||
}
|
||||
}
|
||||
@@ -177,17 +174,6 @@ namespace Semmle.Extraction.CSharp
|
||||
}
|
||||
}
|
||||
|
||||
private void DoExtractCIL(PortableExecutableReference r)
|
||||
{
|
||||
var currentTaskId = IncrementTaskCount();
|
||||
ReportProgressTaskStarted(currentTaskId, r.FilePath);
|
||||
var stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
CIL.Analyser.ExtractCIL(r.FilePath!, Logger, options, out var trapFile, out var extracted);
|
||||
stopwatch.Stop();
|
||||
ReportProgressTaskDone(currentTaskId, r.FilePath, trapFile, stopwatch.Elapsed, extracted ? AnalysisAction.Extracted : AnalysisAction.UpToDate);
|
||||
}
|
||||
|
||||
private void DoExtractTree(SyntaxTree tree)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user