15 references to Attribute
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
599var attr = gen.Attribute(LoggerMessageAttribute, attrArgs);
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.vb (5)
2109Generator.Attribute("a", {}), 2113Generator.Attribute("a", {Generator.IdentifierName("x")}), 2117Generator.Attribute("a", {Generator.AttributeArgument(Generator.IdentifierName("x"))}), 2121Generator.Attribute("a", {Generator.AttributeArgument("x", Generator.IdentifierName("y"))}), 2125Generator.Attribute("a", {Generator.IdentifierName("x"), Generator.IdentifierName("y")}),
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Editing\SyntaxEditorTests.cs (3)
229var attribute = syntaxGenerator.Attribute("Example", args); 273var attribute = syntaxGenerator.Attribute("Example", args); 316var attribute = syntaxGenerator.Attribute("Example", args);
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\AddMarshalAsToElementFixer.cs (1)
51SyntaxNode marshalAsAttribute = gen.Attribute(
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
264=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute, 293=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportFixer.cs (1)
623unmanagedCallConvAttribute = generator.Attribute(TypeNames.UnmanagedCallConvAttribute,
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (2)
264=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute, 293=> generator.Attribute(TypeNames.System_Runtime_InteropServices_MarshalAsAttribute,