97 references to ShapeMemberNames
Microsoft.Interop.LibraryImportGenerator (57)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (19)
776
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForUnmanagedElements),
784
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesSource);
788
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesDestination);
808
MissingMemberNames.CreateDiagnosticPropertiesForMissingMembersDiagnostic(mode,
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged),
834
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForManagedElements),
842
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesSource);
846
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesDestination);
867
ShapeMemberNames
.Value.Stateless.ConvertToManaged),
985
if (marshallerType.GetMembers(
ShapeMemberNames
.BufferSize).OfType<IPropertySymbol>().FirstOrDefault(prop => prop is { ReturnsByRef: false, ReturnsByRefReadonly: false, GetMethod: not null }) is null)
990
MissingMemberNames.CreateDiagnosticPropertiesForMissingMembersDiagnostic(MarshalMode.ManagedToUnmanagedIn,
ShapeMemberNames
.BufferSize),
1067
ShapeMemberNames
.Value.Stateful.FromManaged),
1078
ShapeMemberNames
.Value.Stateful.ToUnmanaged),
1092
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesSource);
1096
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesDestination);
1128
ShapeMemberNames
.Value.Stateful.ToManaged),
1140
ShapeMemberNames
.Value.Stateful.FromUnmanaged),
1161
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesSource);
1165
missingCollectionMethods.Add(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesDestination);
1188
ShapeMemberNames
.Free),
Analyzers\CustomMarshallerAttributeFixer.cs (38)
219
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged))
223
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged,
231
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateless.ConvertToManaged))
235
ShapeMemberNames
.Value.Stateless.ConvertToManaged,
243
if (missingMemberNames.Contains(
ShapeMemberNames
.BufferSize))
247
gen.PropertyDeclaration(
ShapeMemberNames
.BufferSize,
254
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForUnmanagedElements))
258
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForUnmanagedElements,
270
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForManagedElements))
274
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForManagedElements,
286
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesSource))
290
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesSource,
301
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesDestination))
305
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesDestination,
317
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesSource))
321
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesSource,
333
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesDestination))
337
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesDestination,
415
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateful.FromManaged))
419
ShapeMemberNames
.Value.Stateful.FromManaged,
425
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateful.ToUnmanaged))
429
ShapeMemberNames
.Value.Stateful.ToUnmanaged,
435
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateful.FromUnmanaged))
439
ShapeMemberNames
.Value.Stateful.FromUnmanaged,
445
if (missingMemberNames.Contains(
ShapeMemberNames
.Value.Stateful.ToManaged))
449
ShapeMemberNames
.Value.Stateful.ToManaged,
455
if (missingMemberNames.Contains(
ShapeMemberNames
.BufferSize))
459
gen.PropertyDeclaration(
ShapeMemberNames
.BufferSize,
466
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesSource))
470
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesSource,
476
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesDestination))
480
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesDestination,
486
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesSource))
490
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesSource,
500
if (missingMemberNames.Contains(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesDestination))
504
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesDestination,
514
if (missingMemberNames.Contains(
ShapeMemberNames
.Free))
518
ShapeMemberNames
.Value.Stateful.Free,
Microsoft.Interop.SourceGeneration (40)
MarshallerShape.cs (28)
207
return type.GetMembers(
ShapeMemberNames
.Free)
217
return type.GetMembers(
ShapeMemberNames
.GetPinnableReference)
260
return type.GetMembers(
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged)
272
IEnumerable<IMethodSymbol> methods = type.GetMembers(
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged)
291
return type.GetMembers(
ShapeMemberNames
.Value.Stateless.ConvertToManaged)
300
return type.GetMembers(
ShapeMemberNames
.Value.Stateless.ConvertToManagedFinally)
312
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForUnmanagedElements)
323
IEnumerable<IMethodSymbol> methods = type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForUnmanagedElements)
344
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesSource)
354
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesDestination)
364
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForManagedElements)
374
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.AllocateContainerForManagedElementsFinally)
384
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.GetManagedValuesDestination)
394
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateless.GetUnmanagedValuesSource)
563
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.FromManaged)
574
IEnumerable<IMethodSymbol> methods = type.GetMembers(
ShapeMemberNames
.Value.Stateful.FromManaged)
592
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.ToManaged)
600
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.ToManagedFinally)
608
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.ToUnmanaged)
615
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.FromUnmanaged)
654
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.Free)
661
return type.GetMembers(
ShapeMemberNames
.Value.Stateful.OnInvoked)
668
return type.GetMembers(
ShapeMemberNames
.GetPinnableReference)
677
return type.GetMembers(
ShapeMemberNames
.GetPinnableReference)
688
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesSource)
697
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesDestination)
706
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateful.GetManagedValuesDestination)
716
return type.GetMembers(
ShapeMemberNames
.LinearCollection.Stateful.GetUnmanagedValuesSource)
Marshalling\StatefulMarshallingStrategy.cs (8)
36
IdentifierName(
ShapeMemberNames
.Free));
50
IdentifierName(
ShapeMemberNames
.Free));
65
IdentifierName(
ShapeMemberNames
.Value.Stateful.ToManagedFinally)));
78
IdentifierName(
ShapeMemberNames
.Value.Stateful.FromManaged),
94
IdentifierName(
ShapeMemberNames
.Value.Stateful.ToUnmanaged)));
109
IdentifierName(
ShapeMemberNames
.Value.Stateful.ToManaged)));
122
IdentifierName(
ShapeMemberNames
.Value.Stateful.FromUnmanaged),
172
IdentifierName(
ShapeMemberNames
.Value.Stateful.OnInvoked));
Marshalling\StatelessMarshallingStrategy.cs (3)
46
IdentifierName(
ShapeMemberNames
.Value.Stateless.ConvertToManagedFinally)),
62
IdentifierName(
ShapeMemberNames
.Value.Stateless.ConvertToUnmanaged)),
118
IdentifierName(
ShapeMemberNames
.Value.Stateless.ConvertToManaged)),
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
89
IdentifierName(
ShapeMemberNames
.GetPinnableReference)),