17 references to GetMarshallerIdentifier
Microsoft.Interop.SourceGeneration (17)
Marshalling\StatefulMarshallingStrategy.cs (17)
20writer.WriteLine($"{GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Free}();");
29writer.WriteLine($"{GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Free}();");
37writer.WriteLine($"{context.GetIdentifiers(info).managed} = {GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.ToManagedFinally}();");
45writer.WriteLine($"{GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.FromManaged}({context.GetIdentifiers(info).managed});");
53writer.WriteLine($"{context.GetIdentifiers(info).native} = {GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.ToUnmanaged}();");
61writer.WriteLine($"{context.GetIdentifiers(info).managed} = {GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.ToManaged}();");
69writer.WriteLine($"{GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.FromUnmanaged}({context.GetIdentifiers(info).native});");
77writer.WriteLine($"{scoped}{marshallerType.FullTypeName} {GetMarshallerIdentifier(info, context)} = new();");
85writer.WriteLine($"fixed (void* {unusedIdentifier} = {GetMarshallerIdentifier(info, context)})");
93writer.WriteLine($"{GetMarshallerIdentifier(info, context)}.{ShapeMemberNames.Value.Stateful.OnInvoked}();");
121string marshaller = StatefulValueMarshalling.GetMarshallerIdentifier(TypeInfo, context);
145string marshaller = StatefulValueMarshalling.GetMarshallerIdentifier(info, context);
151string marshaller = StatefulValueMarshalling.GetMarshallerIdentifier(info, context);
157string marshaller = StatefulValueMarshalling.GetMarshallerIdentifier(info, context);
164string marshaller = StatefulValueMarshalling.GetMarshallerIdentifier(info, context);
291writer.WriteLine($"{StatefulValueMarshalling.GetMarshallerIdentifier(TypeInfo, context)}.{ShapeMemberNames.Free}();");
300writer.WriteLine($"{StatefulValueMarshalling.GetMarshallerIdentifier(TypeInfo, context)}.{ShapeMemberNames.Free}();");