2 overrides of AttributeArgument
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
949public override SyntaxNode AttributeArgument(string? name, SyntaxNode expression)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1447Public Overrides Function AttributeArgument(name As String, expression As SyntaxNode) As SyntaxNode
13 references to AttributeArgument
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
55 var suppressionJustification = syntaxGenerator.AttributeArgument (Justification,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1831Generator.Attribute("a", [Generator.AttributeArgument("x", Generator.IdentifierName("y"))]),
Microsoft.CodeAnalysis.Features (1)
ChangeSignature\AbstractChangeSignatureService.cs (1)
827? (TArgumentSyntax)Generator.AttributeArgument(
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
2121Generator.Attribute("a", {Generator.AttributeArgument("x", Generator.IdentifierName("y"))}),
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (2)
1025.Concat(attribute.NamedArguments.Select(n => this.AttributeArgument(n.Key, this.TypedConstantExpression(n.Value)))) 1042=> AttributeArgument(name: null, expression);
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (2)
86gen.AttributeArgument("StringMarshalling", gen.MemberAccessExpression(gen.DottedName(TypeNames.StringMarshalling), gen.IdentifierName(nameof(StringMarshalling.Custom)))), 87gen.AttributeArgument("StringMarshallingCustomType", gen.TypeOfExpression(gen.TypeExpression(comp.GetTypeByMetadataName(TypeNames.BStrStringMarshaller))))
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\ConvertToLibraryImportFixer.cs (5)
457argumentsToAdd.Add(generator.AttributeArgument( 466argumentsToAdd.Add(generator.AttributeArgument( 471argumentsToAdd.Add(generator.AttributeArgument( 543argumentsToAdd.Add(generator.AttributeArgument("EntryPoint", 624generator.AttributeArgument("CallConvs", argumentValue));