Skip to content

Commit

Permalink
Resolve bug in CSharp Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jul 10, 2024
1 parent 3e7ce10 commit 1b200da
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ static async Task HandlePackageFileParsing(Stream stream, FileInfo packageFilePa
}
}

dependencyFilesTempDir = await ExtractNugetDependencies(dependencies).ConfigureAwait(false);
var dependencyFilePaths = Directory.EnumerateFiles(dependencyFilesTempDir, "*.dll", SearchOption.AllDirectories);
IEnumerable<string> dependencyFilePaths = null;
if (dependencies != null && dependencies.Any())
{
dependencyFilesTempDir = await ExtractNugetDependencies(dependencies).ConfigureAwait(false);
dependencyFilePaths = Directory.EnumerateFiles(dependencyFilesTempDir, "*.dll", SearchOption.AllDirectories);
}
var assemblySymbol = CompilationFactory.GetCompilation(dllStream, docStream, dependencyFilePaths);

if (assemblySymbol == null)
Expand Down

0 comments on commit 1b200da

Please sign in to comment.