Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs')
-rw-r--r--src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs b/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs
index 1470c03a373..5d2d29be347 100644
--- a/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs
+++ b/src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/ConvertToLibraryImportAnalyzer.cs
@@ -47,9 +47,9 @@ namespace Microsoft.Interop.Analyzers
context.RegisterCompilationStartAction(
compilationContext =>
{
- // Nothing to do if the GeneratedDllImportAttribute is not in the compilation
- INamedTypeSymbol? generatedDllImportAttrType = compilationContext.Compilation.GetTypeByMetadataName(TypeNames.GeneratedDllImportAttribute);
- if (generatedDllImportAttrType == null)
+ // Nothing to do if the LibraryImportAttribute is not in the compilation
+ INamedTypeSymbol? libraryImportAttrType = compilationContext.Compilation.GetTypeByMetadataName(TypeNames.LibraryImportAttribute);
+ if (libraryImportAttrType == null)
return;
INamedTypeSymbol? marshalAsAttrType = compilationContext.Compilation.GetTypeByMetadataName(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute);
@@ -77,11 +77,11 @@ namespace Microsoft.Interop.Analyzers
if (dllImportData == null)
return;
- // Ignore methods already marked GeneratedDllImport
+ // Ignore methods already marked LibraryImport
// This can be the case when the generator creates an extern partial function for blittable signatures.
foreach (AttributeData attr in method.GetAttributes())
{
- if (attr.AttributeClass?.ToDisplayString() == TypeNames.GeneratedDllImportAttribute)
+ if (attr.AttributeClass?.ToDisplayString() == TypeNames.LibraryImportAttribute)
{
return;
}