18 overrides of CommonConstructorArguments
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
57
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
Symbols\Attributes\RetargetingAttributeData.cs (1)
42
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Symbols\Attributes\SourceAttributeData.cs (1)
202
protected internal sealed override ImmutableArray<TypedConstant>
CommonConstructorArguments
Symbols\Source\SynthesizedAttributeData.cs (2)
49
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _arguments;
79
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _original.CommonConstructorArguments;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Attributes\PEAttributeData.vb (1)
72
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Symbols\Attributes\RetargetingAttributeData.vb (1)
58
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Symbols\Attributes\SourceAttributeData.vb (1)
71
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
87
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Mvc.Api.Analyzers.Test (1)
DeclaredApiResponseMetadataTest.cs (1)
161
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> throw new System.NotImplementedException();
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
226 references to CommonConstructorArguments
Microsoft.CodeAnalysis (28)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
380
if (attribute.
CommonConstructorArguments
.Length < 2)
387
info.Id = attribute.
CommonConstructorArguments
[1].ValueInternal as string;
Symbols\Attributes\CommonAttributeData.cs (16)
42
public ImmutableArray<TypedConstant> ConstructorArguments { get { return
CommonConstructorArguments
; } }
149
var constructorArgs = this.
CommonConstructorArguments
;
205
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
242
long value = this.
CommonConstructorArguments
[0].DecodeValue<long>(SpecialType.System_Int64);
275
Debug.Assert(this.
CommonConstructorArguments
.Length == 1);
276
string? diagnosticId = this.
CommonConstructorArguments
[0].ValueInternal as string;
312
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
369
var args = this.
CommonConstructorArguments
;
395
Debug.Assert(this.
CommonConstructorArguments
.Length == 0);
410
if (attribute.
CommonConstructorArguments
.Length == 1)
415
options = (MethodImplOptions)attribute.
CommonConstructorArguments
[0].DecodeValue<short>(SpecialType.System_Int16);
419
options = attribute.
CommonConstructorArguments
[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum);
435
int position = attribute.
CommonConstructorArguments
.Length;
477
LayoutKind kind = attribute.
CommonConstructorArguments
[0].DecodeValue<LayoutKind>(SpecialType.System_Enum);
491
int position = attribute.
CommonConstructorArguments
.Length;
559
return DecodeAttributeUsageAttribute(this.
CommonConstructorArguments
[0], this.CommonNamedArguments);
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
34
attr1.
CommonConstructorArguments
.SequenceEqual(attr2.
CommonConstructorArguments
) &&
46
hash = Hash.Combine(GetHashCodeForConstructorArguments(attr.
CommonConstructorArguments
), hash);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (7)
104
unmanagedType = (UnmanagedType)attribute.
CommonConstructorArguments
[0].DecodeValue<short>(SpecialType.System_Int16);
108
unmanagedType = attribute.
CommonConstructorArguments
[0].DecodeValue<UnmanagedType>(SpecialType.System_Enum);
125
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
179
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
216
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
305
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
371
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
Microsoft.CodeAnalysis.CSharp (73)
Compiler\ClsComplianceChecker.cs (1)
1208
ImmutableArray<TypedConstant> args = data.
CommonConstructorArguments
;
Emitter\Model\AttributeDataAdapter.cs (2)
21
var commonArgs = this.
CommonConstructorArguments
;
76
return this.
CommonConstructorArguments
.Length;
Emitter\NoPia\EmbeddedEvent.cs (1)
89
sourceInterface = attrData.
CommonConstructorArguments
[0].ValueInternal as NamedTypeSymbol;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
159
constructorArguments = attrData.
CommonConstructorArguments
;
Symbols\Attributes\AttributeData.cs (13)
55
get { return this.
CommonConstructorArguments
; }
139
if (this.
CommonConstructorArguments
.IsEmpty && this.CommonNamedArguments.IsEmpty)
152
foreach (var constructorArgument in this.
CommonConstructorArguments
)
253
var value = arguments.Attribute.
CommonConstructorArguments
[0];
303
var value = arguments.Attribute.
CommonConstructorArguments
[1];
309
var sense = arguments.Attribute.
CommonConstructorArguments
[0].DecodeValue<bool>(SpecialType.System_Boolean);
343
var ctorArgs = this.
CommonConstructorArguments
;
574
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
599
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
625
var guidString = (string?)this.
CommonConstructorArguments
[0].ValueInternal;
642
var builderType = (TypeSymbol?)
CommonConstructorArguments
[0].ValueInternal;
643
var methodName = (string?)
CommonConstructorArguments
[1].ValueInternal;
806
var arguments = attribute.
CommonConstructorArguments
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
352
if (signatureIndex == 1 && attrData.
CommonConstructorArguments
.Length == 2)
354
scope = attrData.
CommonConstructorArguments
[0].ValueInternal as string;
355
identifier = attrData.
CommonConstructorArguments
[1].ValueInternal as string;
1178
ImmutableArray<TypedConstant> oldAttributeCtorArguments = oldAttributeData.
CommonConstructorArguments
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
189
int offset = attribute.
CommonConstructorArguments
[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (25)
1518
result.AssemblySignatureKeyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1524
result.AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1530
result.AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2208
TypeSymbol forwardedType = (TypeSymbol)arguments.Attribute.
CommonConstructorArguments
[0].ValueInternal;
2278
string displayName = (string)attrData.
CommonConstructorArguments
[0].ValueInternal;
2377
var signatureKey = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2387
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2391
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2395
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDelaySignAttributeSetting = (bool)attribute.
CommonConstructorArguments
[0].ValueInternal ? ThreeState.True : ThreeState.False;
2399
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2413
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2424
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTitleAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2428
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDescriptionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2432
var cultureString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2450
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCompanyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2454
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyProductAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2458
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyInformationalVersionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2464
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2473
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCopyrightAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2477
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTrademarkAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2481
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2518
if (attribute.
CommonConstructorArguments
.Length == 1)
2525
if (attribute.
CommonConstructorArguments
.Length == 2)
2572
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2598
int argCount = attribute.
CommonConstructorArguments
.Length;
Symbols\Source\SourceComplexParameterSymbol.cs (7)
677
var constructorArguments = attributeData.
CommonConstructorArguments
;
883
var arguments = attribute.
CommonConstructorArguments
;
972
Debug.Assert(attribute.
CommonConstructorArguments
.Length == 1);
975
var arg = attribute.
CommonConstructorArguments
[0];
1197
else if (attribute.
CommonConstructorArguments
.Length == 1 &&
1241
Debug.Assert(arguments.Attribute.IsTargetAttribute(AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.Attribute.
CommonConstructorArguments
.Length == 1);
1266
TypedConstant constructorArgument = arguments.Attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1469
&& attr.
CommonConstructorArguments
.Length == 1
1470
&& attr.
CommonConstructorArguments
[0].Kind == TypedConstantKind.Type)
1472
builderArgument = (TypeSymbol)attr.
CommonConstructorArguments
[0].ValueInternal!;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
381
if (attributeData.
CommonConstructorArguments
is [{ ValueInternal: int priority }])
993
var constructorArguments = arguments.Attribute.
CommonConstructorArguments
;
Symbols\Source\SourceNamedTypeSymbol.cs (6)
1035
Debug.Assert(attributeData.
CommonConstructorArguments
[0].Kind == TypedConstantKind.Type);
1036
TypeSymbol? builderType = attributeData.
CommonConstructorArguments
[0].ValueInternal as TypeSymbol;
1187
var builderType = attribute.
CommonConstructorArguments
[0].ValueInternal as TypeSymbol;
1197
string? methodName = attribute.
CommonConstructorArguments
[1].DecodeValue<string>(SpecialType.System_String);
1209
int length = attribute.
CommonConstructorArguments
[0].DecodeValue<int>(SpecialType.System_Int32);
1344
TypedConstant argument = attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (2)
858
if (attribute.
CommonConstructorArguments
.IsEmpty && attribute.CommonNamedArguments.IsEmpty)
865
foreach (TypedConstant argument in attribute.
CommonConstructorArguments
)
Symbols\Source\SourcePropertySymbolBase.cs (3)
1465
string? indexerName = attributeData.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
1483
if (attributeData.
CommonConstructorArguments
is [{ ValueInternal: int priority }])
1726
string indexerName = attribute.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
Symbols\Symbol_Attributes.cs (2)
227
if (!SyntaxFacts.IsValidIdentifier((string?)arguments.Attribute.
CommonConstructorArguments
[0].ValueInternal))
477
boundAttribute.
CommonConstructorArguments
[0].ValueInternal is TypeSymbol &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (46)
Attributes\AttributeTests.cs (14)
3532
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
3539
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
3546
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
4085
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4227
Assert.Equal(2, attrs.First().
CommonConstructorArguments
.Length);
4317
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4901
var ca = goo.GetAttributes().First().
CommonConstructorArguments
.First();
5254
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5260
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5315
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5319
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5327
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5331
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5723
var args = info.Symbol.GetAttributes()[0].
CommonConstructorArguments
;
Attributes\AttributeTests_CallerInfoAttributes.cs (5)
2299
var arguments = compilation.GetTypeByMetadataName("Program").GetAttributes().Single().
CommonConstructorArguments
;
4408
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4410
Assert.Equal(1, attr.
CommonConstructorArguments
[0].Value);
4438
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4440
Assert.Equal(1, attr.
CommonConstructorArguments
[0].Value);
Attributes\AttributeTests_Dynamic.cs (2)
534
Assert.Empty(dynamicAttribute.
CommonConstructorArguments
);
540
TypedConstant argument = dynamicAttribute.
CommonConstructorArguments
.Single();
Attributes\AttributeTests_Security.cs (1)
62
Assert.Equal(0, typeAttribute.
CommonConstructorArguments
.Length);
Attributes\AttributeTests_Synthesized.cs (4)
69
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length);
77
Assert.Empty(attribute.
CommonConstructorArguments
);
96
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length);
1617
Assert.Empty(unverifiableCode.
CommonConstructorArguments
);
Attributes\AttributeTests_Tuples.cs (2)
633
Assert.True(tupleAttr.
CommonConstructorArguments
.IsEmpty);
637
var arg = tupleAttr.
CommonConstructorArguments
.Single();
Attributes\AttributeTests_WellKnownAttributes.cs (18)
139
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length);
161
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
185
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
190
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
197
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
199
Assert.Equal(TypeLibFuncFlags.FDefaultBind, (TypeLibFuncFlags)attrSym.
CommonConstructorArguments
[0].Value);
296
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
405
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
419
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
427
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
429
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
438
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
440
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
455
Assert.Equal(5, attrSym.
CommonConstructorArguments
.Length);
460
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
479
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
5155
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
5161
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableReferenceTypesTests.cs (2)
6469
Assert.Equal(@"{{""a""}}", attribute.
CommonConstructorArguments
.Single().ToCSharpString());
6491
Assert.Equal(@"{{""a""}}", attribute.
CommonConstructorArguments
.Single().ToCSharpString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (67)
Symbols\AnonymousTypesSymbolTests.cs (2)
1156
Assert.Equal(attr.ConstructorArguments.Length, actual[index].
CommonConstructorArguments
.Length);
1161
actual[index].
CommonConstructorArguments
[argIndex].Value.ToString()
Symbols\Metadata\PE\LoadingAttributes.cs (45)
389
Assert.Equal("Integer", attr.
CommonConstructorArguments
.Single().Value);
395
Assert.Equal("Integer", attr.
CommonConstructorArguments
.Single().Value);
496
var t = field.GetAttributes().First().
CommonConstructorArguments
.Single().Type;
503
t = arg.
CommonConstructorArguments
.Single().Type;
509
t = arg.
CommonConstructorArguments
.Single().Type;
549
foreach (var pa in sa.
CommonConstructorArguments
)
622
Assert.Equal(1, a.
CommonConstructorArguments
.Length);
625
Assert.Equal("System.Runtime.InteropServices.ClassInterfaceType", a.
CommonConstructorArguments
[0].Type.ToDisplayString());
627
Assert.Equal(2, a.
CommonConstructorArguments
[0].Value);
633
Assert.Equal(0, a.
CommonConstructorArguments
.Length);
641
Assert.Equal(2, a.
CommonConstructorArguments
.Length);
701
Assert.Equal(typeof(Int32), attrSym.
CommonConstructorArguments
[0].Value.GetType());
702
Assert.Equal(1, attrSym.
CommonConstructorArguments
[0].Value);
707
Assert.Equal("object", ((Symbol)attrSym.
CommonConstructorArguments
[0].ValueInternal).ToString());
718
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
719
Assert.Equal(32, attrSym.
CommonConstructorArguments
[0].Value);
752
Assert.Equal(3, attrSym.
CommonConstructorArguments
[0].Value);
967
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length);
976
Assert.Equal(3, attrSym.
CommonConstructorArguments
.Length);
987
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length);
989
Assert.Equal("555", attrSym.
CommonConstructorArguments
[0].Value);
996
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length);
997
Assert.Equal("obj", attrSym.
CommonConstructorArguments
[0].Value);
998
Assert.Equal(12, attrSym.
CommonConstructorArguments
[1].Value);
1002
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
1004
Assert.Equal("sbyte[]", attrSym.
CommonConstructorArguments
[0].Type.ToDisplayString());
1068
var pos0 = a.
CommonConstructorArguments
[0].Values;
1069
Assert.Equal("char[]", a.
CommonConstructorArguments
[0].Type.ToDisplayString());
1074
Assert.Equal("string[]", a.
CommonConstructorArguments
[1].Type.ToDisplayString());
1075
Assert.Equal(3, a.
CommonConstructorArguments
[1].Values.Length);
1119
Assert.Equal(-1, prop.GetAttributes().First().
CommonConstructorArguments
[0].Value);
1136
Assert.Equal(3, attrSym.
CommonConstructorArguments
.Length);
1137
Assert.Equal(-8, attrSym.
CommonConstructorArguments
[0].Value);
1139
Assert.Equal(Convert.ToByte(255), attrSym.
CommonConstructorArguments
[1].Value);
1147
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length);
1149
Assert.Equal(7, attrSym.
CommonConstructorArguments
[0].Value);
1151
Assert.Equal(256L, attrSym.
CommonConstructorArguments
[1].Value);
1153
Assert.Equal(0.123f, attrSym.
CommonConstructorArguments
[2].Value);
1154
Assert.Equal(Convert.ToInt16(-2), attrSym.
CommonConstructorArguments
[3].Value);
1160
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
1162
Assert.Equal("AttributeUse.IFoo<System.Int16, System.UInt16>", (attrSym.
CommonConstructorArguments
[0].Value as INamedTypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat));
1211
Assert.Equal("System.Linq.Expressions.Expression.BinaryExpressionProxy", ((ITypeSymbol)attr1.
CommonConstructorArguments
[0].Value).ToDisplayString(SymbolDisplayFormat.TestFormat));
1216
Assert.Equal("System.Linq.Expressions.Expression.TypeBinaryExpressionProxy", ((ITypeSymbol)attr1.
CommonConstructorArguments
[0].Value).ToDisplayString(SymbolDisplayFormat.TestFormat));
1282
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
1283
Assert.Equal(1, attr.
CommonConstructorArguments
[0].Value);
Symbols\RequiredMembersTests.cs (1)
7981
constructor.GetAttributes().Select(a => $"{a.AttributeClass.ToTestDisplayString()}({string.Join(", ", a.
CommonConstructorArguments
.Select(arg => arg.ToCSharpString()))})"));
Symbols\Retargeting\NoPia.cs (18)
2057
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2072
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2087
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2102
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2182
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2197
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2212
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2227
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2307
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2322
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2337
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2352
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2419
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2434
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2515
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2530
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2545
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2560
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
151
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
405
var arg = attr.
CommonConstructorArguments
[i];
Microsoft.CodeAnalysis.VisualBasic (9)
Emit\AttributeDataAdapter.vb (2)
17
Return
CommonConstructorArguments
.SelectAsArray(Function(arg) CreateMetadataExpression(arg, context))
44
Return
CommonConstructorArguments
.Length
Symbols\Attributes\AttributeData.vb (7)
48
Return Me.
CommonConstructorArguments
104
If Not Me.
CommonConstructorArguments
.Any() And Not Me.CommonNamedArguments.Any() Then
116
For Each constructorArgument In Me.
CommonConstructorArguments
233
Dim firstArg As TypedConstant = Me.
CommonConstructorArguments
.FirstOrDefault()
437
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)
464
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)
482
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)