6 references to AddToModifiers
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
620writer.WriteLine($"{string.Join(" ", syntax.Modifiers.AddToModifiers(SyntaxKind.UnsafeKeyword))} {syntax.TypeKind.GetDeclarationKeyword()} {syntax.Identifier}{syntax.TypeParameters}");
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
352modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
300modifiers = modifiers.AddToModifiers(SyntaxKind.ExternKeyword);
Microsoft.Interop.SourceGeneration (3)
ContainingSyntaxContext.cs (3)
113type = type.WithModifiers(type.Modifiers.AddToModifiers(SyntaxKind.UnsafeKeyword)); 139type = type.WithModifiers(type.Modifiers.AddToModifiers(SyntaxKind.UnsafeKeyword)); 172writer.WriteLine($"{string.Join(" ", syntax.Modifiers.AddToModifiers(SyntaxKind.UnsafeKeyword))} {syntax.TypeKind.GetDeclarationKeyword()} {syntax.Identifier}{syntax.TypeParameters}");