1 override of Attribute
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
947
public override SyntaxNode
Attribute
(SyntaxNode name, IEnumerable<SyntaxNode>? attributeArguments)
17 references to Attribute
ILLink.CodeFixProvider (2)
BaseAttributeCodeFixProvider.cs (1)
74
var attribute = generator.
Attribute
(
DynamicallyAccessedMembersCodeFixProvider.cs (1)
136
var attribute = generator.
Attribute
(
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
89
generator.
Attribute
(editor.Generator.TypeExpression(obsoleteAttribute)));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
CodeGeneration\AddImportsTests.cs (1)
879
var attributeSyntax = editor.Generator.
Attribute
(editor.Generator.TypeExpression(attribute));
CodeGeneration\SyntaxGeneratorTests.cs (1)
1908
Generator.
Attribute
(Generator.IdentifierName("a")),
Microsoft.CodeAnalysis.Features (2)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
151
.
Attribute
(generator.TypeExpression(debuggerAttributeTypeSymbol), [attributeArgument])
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
89
generator.
Attribute
(editor.Generator.TypeExpression(obsoleteAttribute)));
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (2)
1062
=>
Attribute
(DottedName(name), attributeArguments);
1081
return
Attribute
(
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddGeneratedComClassFixer.cs (1)
28
var attribute = gen.
Attribute
(gen.TypeExpression(editor.SemanticModel.Compilation.GetBestTypeByMetadataName(TypeNames.GeneratedComClassAttribute)).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation));
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
78
var generatedComInterfaceAttribute = gen.
Attribute
(gen.TypeExpression(comp.GetTypeByMetadataName(TypeNames.GeneratedComInterfaceAttribute)).WithAdditionalAnnotations(Simplifier.AddImportsAnnotation));
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
66
editor.Generator.
Attribute
(editor.Generator.DottedName(TypeNames.System_Runtime_CompilerServices_DisableRuntimeMarshallingAttribute))));
Roslyn.Diagnostics.Analyzers (4)
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (2)
118
importingConstructor = generator.AddAttributes(importingConstructor, generator.
Attribute
(generator.TypeExpression(importingConstructorAttributeSymbol).WithAddImportsAnnotation()));
204
var newDeclaration = generator.AddAttributes(declaration, generator.
Attribute
(generator.TypeExpression(importingConstructorAttributeSymbol).WithAddImportsAnnotation()));
ImportingConstructorShouldBeObsoleteCodeFixProvider.cs (1)
104
var obsoleteAttributeList = generator.
Attribute
(
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
102
var newDeclaration = generator.AddAttributes(declaration, generator.
Attribute
(generator.TypeExpression(partNotDiscoverableAttributeSymbol).WithAddImportsAnnotation()));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
304
newMember = generator.AddAttributes(newMember, generator.
Attribute
(