18 overrides of CommonNamedArguments
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
66
protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
Symbols\Attributes\RetargetingAttributeData.cs (1)
43
protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Symbols\Attributes\SourceAttributeData.cs (1)
207
protected internal sealed override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
Symbols\Source\SynthesizedAttributeData.cs (2)
50
protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
80
protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _original.CommonNamedArguments;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Attributes\PEAttributeData.vb (1)
85
Protected Overrides ReadOnly Property
CommonNamedArguments
As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\Attributes\RetargetingAttributeData.vb (1)
64
Protected Overrides ReadOnly Property
CommonNamedArguments
As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\Attributes\SourceAttributeData.vb (1)
77
Protected Overrides ReadOnly Property
CommonNamedArguments
As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
93
Protected Overrides ReadOnly Property
CommonNamedArguments
As ImmutableArray(Of KeyValuePair(Of String, TypedConstant))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Mvc.Api.Analyzers.Test (1)
DeclaredApiResponseMetadataTest.cs (1)
163
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> throw new System.NotImplementedException();
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
23
protected override ImmutableArray<KeyValuePair<string, TypedConstant>>
CommonNamedArguments
=> _namedArguments;
78 references to CommonNamedArguments
Microsoft.CodeAnalysis (7)
Symbols\Attributes\CommonAttributeData.cs (7)
48
public ImmutableArray<KeyValuePair<string, TypedConstant>> NamedArguments { get { return
CommonNamedArguments
; } }
167
return DecodeNamedArgument<T>(
CommonNamedArguments
, name, specialType, defaultValue);
286
foreach (var (name, value) in this.
CommonNamedArguments
)
335
foreach (var (name, value) in this.
CommonNamedArguments
)
436
foreach (var namedArg in attribute.
CommonNamedArguments
)
492
foreach (var namedArg in attribute.
CommonNamedArguments
)
559
return DecodeAttributeUsageAttribute(this.CommonConstructorArguments[0], this.
CommonNamedArguments
);
Microsoft.CodeAnalysis.CSharp (16)
Emitter\Model\AttributeDataAdapter.cs (2)
58
var commonArgs = this.
CommonNamedArguments
;
84
return (ushort)this.
CommonNamedArguments
.Length;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
160
namedArguments = attrData.
CommonNamedArguments
;
Symbols\Attributes\AttributeData.cs (4)
63
get { return this.
CommonNamedArguments
; }
139
if (this.CommonConstructorArguments.IsEmpty && this.
CommonNamedArguments
.IsEmpty)
163
foreach (var namedArgument in this.
CommonNamedArguments
)
511
var namedArgs = this.
CommonNamedArguments
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1181
ImmutableArray<KeyValuePair<string, TypedConstant>> oldAttributeNamedArguments = oldAttributeData.
CommonNamedArguments
;
Symbols\Source\SourceAssemblySymbol.cs (1)
2542
foreach (var namedArg in attribute.
CommonNamedArguments
)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
872
foreach (var namedArg in attribute.
CommonNamedArguments
)
1433
if (attribute.
CommonNamedArguments
is { IsDefaultOrEmpty: false } namedArgs)
1437
foreach (var (key, value) in attribute.
CommonNamedArguments
)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (4)
858
if (attribute.CommonConstructorArguments.IsEmpty && attribute.
CommonNamedArguments
.IsEmpty)
876
if (!attribute.
CommonNamedArguments
.IsEmpty)
878
var namedArgumentsBuilder = ArrayBuilder<string>.GetInstance(attribute.
CommonNamedArguments
.Length);
879
foreach (KeyValuePair<string, TypedConstant> namedArgument in attribute.
CommonNamedArguments
)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (13)
Attributes\AttributeTests.cs (3)
4088
Assert.Equal(2, attr.
CommonNamedArguments
.Length);
4232
Assert.Equal(0, attrs.First().
CommonNamedArguments
.Length);
4320
Assert.Equal(0, attrs.First().
CommonNamedArguments
.Length);
Attributes\AttributeTests_Synthesized.cs (5)
66
Assert.Empty(attribute.
CommonNamedArguments
);
81
Assert.Equal(1, attribute.
CommonNamedArguments
.Length);
86
Assert.Equal(0, attribute.
CommonNamedArguments
.Length);
94
Assert.Empty(attribute.
CommonNamedArguments
);
1618
Assert.Empty(unverifiableCode.
CommonNamedArguments
);
Attributes\AttributeTests_WellKnownAttributes.cs (5)
140
Assert.Equal(0, attrSym.
CommonNamedArguments
.Length);
162
Assert.Equal(0, attrSym.
CommonNamedArguments
.Length);
471
Assert.Equal(3, attrSym.
CommonNamedArguments
.Length);
5157
Assert.Equal(1, attrSym.
CommonNamedArguments
.Length);
5163
Assert.Equal(1, attrSym.
CommonNamedArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (35)
Symbols\Metadata\PE\LoadingAttributes.cs (22)
556
foreach (var na in sa.
CommonNamedArguments
)
623
Assert.Equal(0, a.
CommonNamedArguments
.Length);
634
Assert.Equal(0, a.
CommonNamedArguments
.Length);
640
Assert.Equal(0, a.
CommonNamedArguments
.Length);
754
Assert.Equal(4, attrSym.
CommonNamedArguments
.Length);
755
Assert.Equal("BestFitMapping", attrSym.
CommonNamedArguments
[0].Key);
756
Assert.Equal(true, attrSym.
CommonNamedArguments
[0].Value.Value);
932
Assert.Equal(2, (attrSym.
CommonNamedArguments
[0].Value.ValueInternal as NamedTypeSymbol).Arity);
1003
Assert.Equal(1, attrSym.
CommonNamedArguments
.Length);
1007
Assert.Equal("ObjectField", attrSym.
CommonNamedArguments
[0].Key);
1008
Assert.Equal("System.Collections.Generic.IList<>", (attrSym.
CommonNamedArguments
[0].Value.Value as INamedTypeSymbol).ToString());
1076
var na0 = a.
CommonNamedArguments
[0].Value.Values;
1087
Assert.Equal(1, a.
CommonNamedArguments
.Length);
1093
Assert.Equal("AryField", a.
CommonNamedArguments
[0].Key);
1094
Assert.Equal("ulong[]", a.
CommonNamedArguments
[0].Value.Type.ToDisplayString());
1095
var na1 = a.
CommonNamedArguments
[0].Value.Values;
1096
Assert.Equal("AryField", a.
CommonNamedArguments
[0].Key);
1114
Assert.Equal(0, fld.GetAttributes().First().
CommonNamedArguments
.Length);
1161
Assert.Equal(1, attrSym.
CommonNamedArguments
.Length);
1163
Assert.Equal(1, attrSym.
CommonNamedArguments
[0].Value.Value);
1245
Assert.Equal("DefaultValue", attr.
CommonNamedArguments
[0].Key);
1246
Assert.Equal(0, attr.
CommonNamedArguments
[0].Value.Value);
Symbols\RequiredMembersTests.cs (12)
3950
Assert.Equal(2, attr.
CommonNamedArguments
.Length);
3951
Assert.Equal(1, (int)attr.
CommonNamedArguments
[0].Value.ValueInternal!);
3952
Assert.Equal(2, (int)attr.
CommonNamedArguments
[1].Value.ValueInternal!);
3979
Assert.Equal(2, attr.
CommonNamedArguments
.Length);
3980
Assert.Equal(1, (int)attr.
CommonNamedArguments
[0].Value.ValueInternal!);
3981
Assert.Equal(2, (int)attr.
CommonNamedArguments
[1].Value.ValueInternal!);
4009
Assert.Equal(2, attr.
CommonNamedArguments
.Length);
4010
Assert.Equal(1, (int)attr.
CommonNamedArguments
[0].Value.ValueInternal!);
4011
Assert.Equal(2, (int)attr.
CommonNamedArguments
[1].Value.ValueInternal!);
4039
Assert.Equal(2, attr.
CommonNamedArguments
.Length);
4040
Assert.Equal(1, (int)attr.
CommonNamedArguments
[0].Value.ValueInternal!);
4041
Assert.Equal(2, (int)attr.
CommonNamedArguments
[1].Value.ValueInternal!);
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
154
Assert.Equal(2, attribute.
CommonNamedArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
412
var namedArg = attr.
CommonNamedArguments
[i];
Microsoft.CodeAnalysis.VisualBasic (6)
Emit\AttributeDataAdapter.vb (2)
39
Return
CommonNamedArguments
.SelectAsArray(Function(namedArgument) CreateMetadataNamedArgument(namedArgument.Key, namedArgument.Value, context))
50
Return CType(
CommonNamedArguments
.Length, UShort)
Symbols\Attributes\AttributeData.vb (4)
57
Return Me.
CommonNamedArguments
104
If Not Me.CommonConstructorArguments.Any() And Not Me.
CommonNamedArguments
.Any() Then
125
For Each namedArgument In Me.
CommonNamedArguments
377
Dim namedArgs = Me.
CommonNamedArguments