Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/libraries/System.Runtime.InteropServices/gen/DllImportGene…
…rator/Analyzers/ConvertToGeneratedDllImportAnalyzer.cs

Co-authored-by: Adeel Mujahid <[email protected]>
  • Loading branch information
elinor-fung and am11 authored Oct 26, 2021
commit dde7663230381ef54f06495ae3e4f34d3c4800c8
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override void Initialize(AnalysisContext context)
if (generatedDllImportAttrType == null)
return;

List<ITypeSymbol> knownUnsupportedTypes = new List<ITypeSymbol>();
var knownUnsupportedTypes = new List<ITypeSymbol>(s_unsupportedTypeNames.Length);
foreach (string typeName in s_unsupportedTypeNames)
{
INamedTypeSymbol? unsupportedType = compilationContext.Compilation.GetTypeByMetadataName(typeName);
Expand Down