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