30 references to InteropAttributeMember
Microsoft.Interop.ComInterfaceGenerator (5)
ComInterfaceInfo.cs (4)
200if (attrInfo.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling) || attrInfo.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshallingCustomType)) 237if ((baseAttr.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling) || baseAttr.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshallingCustomType))
VtableIndexStubGenerator.cs (1)
248if (virtualMethodIndexData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling))
Microsoft.Interop.LibraryImportGenerator (10)
Analyzers\ConvertToLibraryImportAnalyzer.cs (2)
220interopData = interopData with { IsUserDefined = interopData.IsUserDefined | InteropAttributeMember.SetLastError, SetLastError = true }; 225interopData = interopData with { IsUserDefined = interopData.IsUserDefined | InteropAttributeMember.StringMarshalling, StringMarshalling = StringMarshalling.Utf16 };
LibraryImportGenerator.cs (8)
277if (libraryImportData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling)) 386if (pinvokeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling) 398pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~InteropAttributeMember.StringMarshalling }; 401if (pinvokeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshallingCustomType)) 408$"{nameof(TypeNames.LibraryImportAttribute)}{Type.Delimiter}{nameof(InteropAttributeMember.StringMarshallingCustomType)}"); 411pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~InteropAttributeMember.StringMarshallingCustomType }; 497if (target.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling)) 505if (target.IsUserDefined.HasFlag(InteropAttributeMember.SetLastError))
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
DownlevelLibraryImportGenerator.cs (4)
280if (pinvokeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling) 290pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~InteropAttributeMember.StringMarshalling }; 372if (target.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling)) 383if (target.IsUserDefined.HasFlag(InteropAttributeMember.SetLastError))
DownlevelLibraryImportGeneratorHelpers.cs (2)
16if (interopAttributeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling)) 26else if (interopAttributeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshallingCustomType))
Microsoft.Interop.SourceGeneration (9)
DefaultMarshallingInfoParser.cs (2)
36if (interopAttributeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshalling)) 46else if (interopAttributeData.IsUserDefined.HasFlag(InteropAttributeMember.StringMarshallingCustomType))
InteropAttributeData.cs (7)
32public InteropAttributeMember IsUserDefined { get; init; } 47public InteropAttributeMember IsUserDefined { get; init; } 57InteropAttributeMember userDefinedValues = InteropAttributeMember.None; 64userDefinedValues |= InteropAttributeMember.SetLastError; 73userDefinedValues |= InteropAttributeMember.StringMarshalling; 84userDefinedValues |= InteropAttributeMember.StringMarshallingCustomType;