19 references to AddAttributes
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
601
logMethod = gen.
AddAttributes
(logMethod, attr);
Microsoft.CodeAnalysis.Analyzers (1)
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (1)
76
var newClassDecl = generator.
AddAttributes
(classDecl, attribute);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
300
updatedProperty = generator.
AddAttributes
(
Microsoft.CodeAnalysis.Features (1)
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
300
updatedProperty = generator.
AddAttributes
(
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxEditorExtensions.cs (1)
57
=> editor.ReplaceNode(declaration, (d, g) => g.
AddAttributes
(d, [attribute]));
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\AddGeneratedComClassFixer.cs (1)
34
var updatedNode = gen.
AddAttributes
(node, attribute);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
244
generatedDeclaration = generator.ReplaceNode(generatedDeclaration, generatedParameterSyntax, generator.
AddAttributes
(generatedParameterSyntax,
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
64
editor.Generator.
AddAttributes
(
Analyzers\ConvertToLibraryImportFixer.cs (1)
268
generatedDeclaration = generator.
AddAttributes
(generatedDeclaration, unmanagedCallConvAttributeMaybe);
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
244
generatedDeclaration = generator.ReplaceNode(generatedDeclaration, generatedParameterSyntax, generator.
AddAttributes
(generatedParameterSyntax,
Roslyn.Diagnostics.Analyzers (8)
AbstractApplyTraitToClass`1.cs (1)
117
newTypeDeclaration = syntaxGenerator.
AddAttributes
(newTypeDeclaration, attribute.WithAdditionalAnnotations(Formatter.Annotation));
AbstractRunIterations`1.cs (2)
107
updatedMethod = syntaxGenerator.
AddAttributes
(updatedMethod, syntaxGenerator.Attribute(WellKnownTypeNames.XunitCombinatorialDataAttribute).WithAddImportsAnnotation());
114
syntaxGenerator.
AddAttributes
(
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)
113
var newDeclaration = generator.
AddAttributes
(declaration, obsoleteAttributeList);
PartsExportedWithMEFv2MustBeMarkedAsShared.Fixer.cs (1)
64
var newDeclaration = generator.
AddAttributes
(declaration, generator.Attribute(typeof(SharedAttribute).FullName));
TestExportsShouldNotBeDiscoverableCodeFixProvider.cs (1)
102
var newDeclaration = generator.
AddAttributes
(declaration, generator.Attribute(generator.TypeExpression(partNotDiscoverableAttributeSymbol).WithAddImportsAnnotation()));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
328
newMember = generator.
AddAttributes
(newMember, generator.Attribute(