1 override of AttributeArgument
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
956public override SyntaxNode AttributeArgument(string? name, SyntaxNode expression)
12 references to AttributeArgument
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
55var suppressionJustification = syntaxGenerator.AttributeArgument(Justification,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1930Generator.Attribute("a", [Generator.AttributeArgument("x", Generator.IdentifierName("y"))]),
Microsoft.CodeAnalysis.Features (1)
ChangeSignature\AbstractChangeSignatureService.cs (1)
827? (TArgumentSyntax)Generator.AttributeArgument(
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (2)
1084.Concat(attribute.NamedArguments.Select(n => this.AttributeArgument(n.Key, this.TypedConstantExpression(n.Value)))) 1101=> 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));