C#: Only extract Public and Protected members from reference assemblies.

This commit is contained in:
Michael Nebel
2024-11-26 13:13:08 +01:00
parent 647515bd84
commit f7874c37c4
5 changed files with 44 additions and 10 deletions

View File

@@ -269,7 +269,7 @@ namespace Semmle.Extraction.CSharp
AnalyseNamespace(cx, memberNamespace);
}
foreach (var memberType in ns.GetTypeMembers())
foreach (var memberType in ns.GetTypeMembers().ExtractionCandidates())
{
Entities.Type.Create(cx, memberType).ExtractRecursive();
}

View File

@@ -549,7 +549,6 @@ namespace Semmle.Extraction.CSharp
compilerArguments.CompilationOptions
.WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default)
.WithStrongNameProvider(new DesktopStrongNameProvider(compilerArguments.KeyFileSearchPaths))
.WithMetadataImportOptions(MetadataImportOptions.All)
);
},
(compilation, options) => analyser.EndInitialize(compilerArguments, options, compilation, cwd, args),