6 overrides of CommonConstructorArguments
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationAttributeData.cs (1)
20
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Attributes\PEAttributeData.cs (1)
56
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
Symbols\Attributes\SourceAttributeData.cs (1)
172
protected internal sealed override ImmutableArray<TypedConstant>
CommonConstructorArguments
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Attributes\PEAttributeData.vb (1)
72
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Symbols\Attributes\SourceAttributeData.vb (1)
66
Protected Overrides ReadOnly Property
CommonConstructorArguments
As ImmutableArray(Of TypedConstant)
Microsoft.CodeAnalysis.Workspaces (1)
CodeGenerationAttributeData.cs (1)
20
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
523 references to CommonConstructorArguments
Microsoft.CodeAnalysis (42)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
376
if (attribute.
CommonConstructorArguments
.Length < 2)
383
info.Id = attribute.
CommonConstructorArguments
[1].ValueInternal as string;
Emit\NoPia\CommonEmbeddedMember.cs (1)
74
if (attrData.
CommonConstructorArguments
.Length == 1)
Emit\NoPia\CommonEmbeddedMethod.cs (1)
87
if (attrData.
CommonConstructorArguments
.Length == 1)
Emit\NoPia\CommonEmbeddedParameter.cs (4)
91
if (attrData.
CommonConstructorArguments
.Length == 0)
98
if (attrData.
CommonConstructorArguments
.Length == 1)
110
if (attrData.
CommonConstructorArguments
.Length == 5)
120
if (attrData.
CommonConstructorArguments
.Length == 1)
Emit\NoPia\CommonEmbeddedType.cs (8)
119
if (attrData.
CommonConstructorArguments
.Length == 2)
131
if (attrData.
CommonConstructorArguments
.Length == 1)
140
if (attrData.
CommonConstructorArguments
.Length == 1)
147
if (attrData.
CommonConstructorArguments
.Length == 1)
154
if (attrData.
CommonConstructorArguments
.Length == 0 && UnderlyingNamedType.IsEnum)
161
if (attrData.
CommonConstructorArguments
.Length == 1)
166
string defaultMember = attrData.
CommonConstructorArguments
[0].ValueInternal as string;
175
if (attrData.
CommonConstructorArguments
.Length == 1)
Symbols\Attributes\CommonAttributeData.cs (14)
42
public ImmutableArray<TypedConstant> ConstructorArguments { get { return
CommonConstructorArguments
; } }
144
var constructorArgs = this.
CommonConstructorArguments
;
200
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
237
long value = this.
CommonConstructorArguments
[0].DecodeValue<long>(SpecialType.System_Int64);
270
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
327
var args = this.
CommonConstructorArguments
;
353
Debug.Assert(this.
CommonConstructorArguments
.Length == 0);
368
if (attribute.
CommonConstructorArguments
.Length == 1)
373
options = (MethodImplOptions)attribute.
CommonConstructorArguments
[0].DecodeValue<short>(SpecialType.System_Int16);
377
options = attribute.
CommonConstructorArguments
[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum);
393
int position = attribute.
CommonConstructorArguments
.Length;
435
LayoutKind kind = attribute.
CommonConstructorArguments
[0].DecodeValue<LayoutKind>(SpecialType.System_Enum);
449
int position = attribute.
CommonConstructorArguments
.Length;
517
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;
294
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
360
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
Symbols\CommonAttributeDataExtensions.cs (2)
11
if (attrData.
CommonConstructorArguments
.Length == 1)
13
object? value = attrData.
CommonConstructorArguments
[0].ValueInternal;
Microsoft.CodeAnalysis.CSharp (63)
Compiler\ClsComplianceChecker.cs (1)
1201
ImmutableArray<TypedConstant> args = data.
CommonConstructorArguments
;
Emitter\Model\AttributeDataAdapter.cs (2)
21
var commonArgs = this.
CommonConstructorArguments
;
76
return this.
CommonConstructorArguments
.Length;
Emitter\NoPia\EmbeddedEvent.cs (2)
85
if (attrData.
CommonConstructorArguments
.Length == 2)
87
sourceInterface = attrData.
CommonConstructorArguments
[0].ValueInternal as NamedTypeSymbol;
Emitter\NoPia\EmbeddedTypesManager.cs (3)
139
ImmutableArray.Create<TypedConstant>(attrData.
CommonConstructorArguments
[0], attrData.
CommonConstructorArguments
[0]),
152
return new SynthesizedAttributeData(ctor, attrData.
CommonConstructorArguments
, attrData.CommonNamedArguments);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
31
attrData.
CommonConstructorArguments
.Length == 2)
Symbols\Attributes\AttributeData.cs (11)
67
get { return this.
CommonConstructorArguments
; }
161
if (!this.
CommonConstructorArguments
.Any() & !this.CommonNamedArguments.Any())
174
foreach (var constructorArgument in this.
CommonConstructorArguments
)
275
var value = arguments.Attribute.
CommonConstructorArguments
[0];
325
var value = arguments.Attribute.
CommonConstructorArguments
[1];
331
var sense = arguments.Attribute.
CommonConstructorArguments
[0].DecodeValue<bool>(SpecialType.System_Boolean);
365
var ctorArgs = this.
CommonConstructorArguments
;
596
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
622
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
649
var guidString = (string?)this.
CommonConstructorArguments
[0].ValueInternal;
833
var arguments = attribute.
CommonConstructorArguments
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
352
if (signatureIndex == 1 && attrData.
CommonConstructorArguments
.Length == 2)
354
scope = attrData.
CommonConstructorArguments
[0].ValueInternal as string;
355
identifier = attrData.
CommonConstructorArguments
[1].ValueInternal as string;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
188
int offset = attribute.
CommonConstructorArguments
[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (23)
1508
result.AssemblySignatureKeyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1514
result.AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1520
result.AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2182
TypeSymbol forwardedType = (TypeSymbol)arguments.Attribute.
CommonConstructorArguments
[0].ValueInternal;
2252
string displayName = (string)attrData.
CommonConstructorArguments
[0].ValueInternal;
2351
var signatureKey = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2361
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2365
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2369
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDelaySignAttributeSetting = (bool)attribute.
CommonConstructorArguments
[0].ValueInternal ? ThreeState.True : ThreeState.False;
2373
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2387
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2398
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTitleAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2402
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDescriptionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2406
var cultureString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2424
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCompanyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2428
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyProductAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2432
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyInformationalVersionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2438
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2448
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCopyrightAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2452
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTrademarkAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2456
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2532
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2553
int argCount = attribute.
CommonConstructorArguments
.Length;
Symbols\Source\SourceComplexParameterSymbol.cs (7)
674
var constructorArguments = attributeData.
CommonConstructorArguments
;
874
var arguments = attribute.
CommonConstructorArguments
;
957
Debug.Assert(attribute.
CommonConstructorArguments
.Length == 1);
960
var arg = attribute.
CommonConstructorArguments
[0];
1189
else if (attribute.
CommonConstructorArguments
.Length == 1 &&
1233
Debug.Assert(arguments.Attribute.IsTargetAttribute(this, AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.Attribute.
CommonConstructorArguments
.Length == 1);
1252
TypedConstant constructorArgument = arguments.Attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourceModuleSymbol.cs (2)
321
if (attrData.
CommonConstructorArguments
.Length == 1)
328
if (attrData.
CommonConstructorArguments
.Length == 2)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1257
TypedConstant argument = attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourcePropertySymbolBase.cs (2)
1194
string? indexerName = attributeData.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
1414
string indexerName = attribute.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
Symbols\Symbol_Attributes.cs (1)
462
boundAttribute.
CommonConstructorArguments
[0].ValueInternal is TypeSymbol &&
Symbols\SymbolExtensions.cs (3)
831
&& attr.
CommonConstructorArguments
.Length == 1
832
&& attr.
CommonConstructorArguments
[0].Kind == TypedConstantKind.Type)
834
builderArgument = attr.
CommonConstructorArguments
[0].ValueInternal!;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (46)
Attributes\AttributeTests.cs (14)
3492
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
3499
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
3506
Assert.Equal(2, attr.
CommonConstructorArguments
.Length);
4043
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4185
Assert.Equal(2, attrs.First().
CommonConstructorArguments
.Length);
4275
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4603
var ca = goo.GetAttributes().First().
CommonConstructorArguments
.First();
4956
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4962
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5017
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5021
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5029
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5033
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
5425
var args = info.Symbol.GetAttributes()[0].
CommonConstructorArguments
;
Attributes\AttributeTests_CallerInfoAttributes.cs (5)
2299
var arguments = compilation.GetTypeByMetadataName("Program").GetAttributes().Single().
CommonConstructorArguments
;
4395
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4397
Assert.Equal(1, attr.
CommonConstructorArguments
[0].Value);
4425
Assert.Equal(1, attr.
CommonConstructorArguments
.Length);
4427
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)
138
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length);
160
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
184
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
189
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
196
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
198
Assert.Equal(TypeLibFuncFlags.FDefaultBind, (TypeLibFuncFlags)attrSym.
CommonConstructorArguments
[0].Value);
295
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
404
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
418
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
426
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
428
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
437
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
439
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
454
Assert.Equal(5, attrSym.
CommonConstructorArguments
.Length);
459
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
478
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length);
5066
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
5072
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableReferenceTypesTests.cs (2)
6457
Assert.Equal(@"{{""a""}}", attribute.
CommonConstructorArguments
.Single().ToCSharpString());
6479
Assert.Equal(@"{{""a""}}", attribute.
CommonConstructorArguments
.Single().ToCSharpString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (66)
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\Retargeting\NoPia.cs (18)
2056
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2071
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2086
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2101
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2181
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2196
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2211
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2226
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2306
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2321
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2336
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2351
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2418
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2433
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2514
var args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2529
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2544
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
2559
args = attrTest1.GetAttributes()[0].
CommonConstructorArguments
;
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
150
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
368
var arg = attr.
CommonConstructorArguments
[i];
Microsoft.CodeAnalysis.VisualBasic (61)
Compilation\ClsComplianceChecker.vb (1)
777
Dim args As ImmutableArray(Of TypedConstant) = attributeData.
CommonConstructorArguments
Emit\AttributeDataAdapter.vb (2)
17
Return
CommonConstructorArguments
.SelectAsArray(Function(arg) CreateMetadataExpression(arg, context))
44
Return
CommonConstructorArguments
.Length
Emit\NoPia\EmbeddedEvent.vb (2)
71
If attrData.
CommonConstructorArguments
.Length = 2 Then
72
sourceInterface = TryCast(attrData.
CommonConstructorArguments
(0).ValueInternal, NamedTypeSymbol)
Emit\NoPia\EmbeddedTypesManager.vb (3)
100
ImmutableArray.Create(attrData.
CommonConstructorArguments
(0), attrData.
CommonConstructorArguments
(0)),
113
Return New SynthesizedAttributeData(ctor, attrData.
CommonConstructorArguments
, attrData.CommonNamedArguments)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
219
attrData.
CommonConstructorArguments
.Length = 2 Then
Symbols\Attributes\AttributeData.vb (7)
48
Return Me.
CommonConstructorArguments
107
If Not Me.
CommonConstructorArguments
.Any() And Not Me.CommonNamedArguments.Any() Then
119
For Each constructorArgument In Me.
CommonConstructorArguments
236
Dim firstArg As TypedConstant = Me.
CommonConstructorArguments
.FirstOrDefault()
440
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)
467
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)
485
Dim ctorArgument As TypedConstant = Me.
CommonConstructorArguments
(0)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (4)
273
If signatureIndex = 1 AndAlso attrData.
CommonConstructorArguments
.Length = 2 Then
274
scope = TryCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
275
identifier = TryCast(attrData.
CommonConstructorArguments
(1).ValueInternal, String)
690
Dim oldCtorArguments = oldAttribute.
CommonConstructorArguments
Symbols\Source\SourceAssemblySymbol.vb (20)
935
Dim displayName As String = TryCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1003
Dim signatureKey = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1011
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyKeyFileAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1013
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyKeyContainerAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1015
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyDelaySignAttributeSetting = If(DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, Boolean), ThreeState.True, ThreeState.False)
1017
Dim verString = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1025
Dim verString = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1032
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyInformationalVersionAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1034
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyTitleAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1036
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyDescriptionAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1038
Dim cultureString = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1050
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyCompanyAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1052
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyProductAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1054
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyInformationalVersionAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1058
Dim verString = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1063
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyCopyrightAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1065
arguments.GetOrCreateData(Of CommonAssemblyWellKnownAttributeData)().AssemblyTrademarkAttributeSetting = DirectCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
1089
Dim value As Object = attrData.
CommonConstructorArguments
(0).ValueInternal
1103
Dim value As Object = attrData.
CommonConstructorArguments
(0).ValueInternal
1132
Dim argCount As Integer = attrData.
CommonConstructorArguments
.Length
Symbols\Source\SourceFieldSymbol.vb (1)
732
Dim offset = attrData.
CommonConstructorArguments
(0).DecodeValue(Of Integer)(SpecialType.System_Int32)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
1009
Dim args = attr.
CommonConstructorArguments
Symbols\Source\SourceMethodSymbol.vb (1)
1648
Dim moduleName As String = TryCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
Symbols\Source\SourceModuleSymbol.vb (4)
770
If attrData.
CommonConstructorArguments
.Length = 1 Then
771
Dim value = attrData.
CommonConstructorArguments
(0).ValueInternal
778
If attrData.
CommonConstructorArguments
.Length = 1 Then
783
If attrData.
CommonConstructorArguments
.Length = 2 Then
Symbols\Source\SourceNamedTypeSymbol.vb (6)
2193
If attrData.
CommonConstructorArguments
.Length = 1 AndAlso attrData.
CommonConstructorArguments
(0).Kind = TypedConstantKind.Primitive Then
2194
Dim eventName = TryCast(attrData.
CommonConstructorArguments
(0).ValueInternal, String)
2207
Debug.Assert(Not attrData.
CommonConstructorArguments
.IsDefault AndAlso attrData.
CommonConstructorArguments
.Length = 1)
2208
Dim argument As TypedConstant = attrData.
CommonConstructorArguments
(0)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
38
Dim args As ImmutableArray(Of TypedConstant) = attrData.
CommonConstructorArguments
310
Dim typedValue As TypedConstant = attrData(comVisible).
CommonConstructorArguments
(0)
484
Dim typedValue As TypedConstant = attrData(dispIdIndex).
CommonConstructorArguments
(0)
Symbols\Source\SourceParameterSymbol.vb (5)
271
If AttributeData.IsTargetEarlyAttribute(attributeType:=attribute.AttributeClass, attributeArgCount:=attribute.
CommonConstructorArguments
.Length, description:=AttributeDescription.CallerArgumentExpressionAttribute) Then
275
Debug.Assert(attribute.
CommonConstructorArguments
.Length = 1)
279
Dim oldTypedConstant = attribute.
CommonConstructorArguments
.Single()
416
Debug.Assert(attribute.
CommonConstructorArguments
.Length = 1)
419
Dim arg = attribute.
CommonConstructorArguments
(0)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (97)
Attributes\AttributeTests.vb (37)
264
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
266
Assert.Equal(TypedConstantKind.Enum, a.
CommonConstructorArguments
(0).Kind)
267
Assert.Equal("System.Configuration.Assemblies.AssemblyHashAlgorithm", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
268
Assert.Equal(Configuration.Assemblies.AssemblyHashAlgorithm.MD5, CType(a.
CommonConstructorArguments
(0).Value, Configuration.Assemblies.AssemblyHashAlgorithm))
270
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
271
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
272
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
275
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
276
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
277
Assert.Equal("Boolean", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
278
Assert.Equal(True, a.
CommonConstructorArguments
(0).Value)
280
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
281
Assert.Equal(TypedConstantKind.Enum, a.
CommonConstructorArguments
(0).Kind)
282
Assert.Equal("System.Reflection.AssemblyNameFlags", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
283
Assert.Equal(AssemblyNameFlags.Retargetable, CType(a.
CommonConstructorArguments
(0).Value, AssemblyNameFlags))
285
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
286
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
287
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
288
Assert.Equal("MyKey.snk", a.
CommonConstructorArguments
(0).Value)
290
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
291
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
292
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
293
Assert.Equal("Key Name", a.
CommonConstructorArguments
(0).Value)
295
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
296
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
297
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
298
Assert.Equal("1.2.*", a.
CommonConstructorArguments
(0).Value)
300
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
301
Assert.Equal(TypedConstantKind.Primitive, a.
CommonConstructorArguments
(0).Kind)
302
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
303
Assert.Equal("4.3.2.100", a.
CommonConstructorArguments
(0).Value)
1219
Dim tc = attrs(0).
CommonConstructorArguments
(0)
1900
Dim ca = goo.GetAttributes().First().
CommonConstructorArguments
.First()
1949
Dim gt = a.GetAttributes().First().
CommonConstructorArguments
.First()
2001
Dim gt = a.GetAttributes().First().
CommonConstructorArguments
.First()
2036
Dim gt = a.GetAttributes().First().
CommonConstructorArguments
.First()
2080
Dim gt = a.GetAttributes().First().
CommonConstructorArguments
.First()
Attributes\AttributeTests_Synthesized.vb (2)
726
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length)
734
Assert.Empty(attribute.
CommonConstructorArguments
)
Attributes\AttributeTests_Tuples.vb (2)
432
Assert.True(tupleAttr.
CommonConstructorArguments
.IsEmpty)
434
Dim arg = tupleAttr.
CommonConstructorArguments
.Single()
Attributes\AttributeTests_WellKnownAttributes.vb (50)
71
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length)
73
Assert.Equal(3, attrSym.
CommonConstructorArguments
(2).Value)
97
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
102
Assert.Equal("String", attrSym.
CommonConstructorArguments
(0).Type.ToDisplayString)
103
Assert.Equal("ABCDEF5D-2448-447A-B786-64682CBEF123", attrSym.
CommonConstructorArguments
(0).Value)
107
Assert.Equal("System.Runtime.InteropServices.ComInterfaceType", attrSym.
CommonConstructorArguments
(0).Type.ToDisplayString())
108
Assert.Equal(ComInterfaceType.InterfaceIsIUnknown, CType(attrSym.
CommonConstructorArguments
(0).Value, ComInterfaceType))
111
Assert.Equal("Object", CType(attrSym.
CommonConstructorArguments
(0).Value, Symbol).ToDisplayString())
114
Assert.Equal(TypeLibTypeFlags.FAggregatable, CType(attrSym.
CommonConstructorArguments
(0).Value, TypeLibTypeFlags))
117
Assert.Equal(False, attrSym.
CommonConstructorArguments
(0).Value)
128
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
133
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
140
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
141
Assert.Equal(TypeLibFuncFlags.FDefaultBind, CType(attrSym.
CommonConstructorArguments
(0).Value, TypeLibFuncFlags)) ' 32
211
Assert.Equal(False, attrSym.
CommonConstructorArguments
(0).Value)
214
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
215
Assert.Equal(CallingConvention.StdCall, CType(attrSym.
CommonConstructorArguments
(0).Value, CallingConvention)) ' 3
232
Assert.Equal("Object", CType(attrSym.
CommonConstructorArguments
(0).Value, Symbol).ToDisplayString())
235
Assert.Equal("String", attrSym.
CommonConstructorArguments
(0).Type.ToDisplayString)
236
Assert.Equal("ProgId", attrSym.
CommonConstructorArguments
(0).Value)
240
Assert.Equal(123, attrSym.
CommonConstructorArguments
(0).Value)
242
Assert.Equal(1, attrSym.
CommonConstructorArguments
(0).Value)
244
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
253
Assert.Equal(True, attrSym.
CommonConstructorArguments
(0).Value)
256
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length)
257
Assert.Equal("EGoo, InteropAttribute, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", attrSym.
CommonConstructorArguments
(1).Value)
266
Assert.Equal(TypeLibVarFlags.FDisplayBind, CType(attrSym.
CommonConstructorArguments
(0).Value, TypeLibVarFlags))
271
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length)
272
Assert.Equal("message", attrSym.
CommonConstructorArguments
(0).Value)
273
Assert.Equal(False, attrSym.
CommonConstructorArguments
(1).Value)
355
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
367
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
375
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
377
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
385
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
387
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
402
Assert.Equal(5, attrSym.
CommonConstructorArguments
.Length)
407
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
426
Assert.Equal(0, attrSym.
CommonConstructorArguments
.Length)
963
Assert.Equal("unmanaged.dll", attrSym.
CommonConstructorArguments
(0).Value)
974
Assert.Equal("user32.dll", attrSym.
CommonConstructorArguments
(0).Value)
1200
Assert.Equal("user32.dll", attrSym.
CommonConstructorArguments
(0).Value)
3368
Dim gt = compilation2.GetTypeByMetadataName("Module1").GetAttributes().First().
CommonConstructorArguments
.First()
3439
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
3440
Assert.Equal(TypedConstantKind.Enum, attrSym.
CommonConstructorArguments
(0).Kind)
3441
Assert.Equal(AttributeTargets.Class, DirectCast(attrSym.
CommonConstructorArguments
(0).Value, AttributeTargets))
3448
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
3449
Assert.Equal(TypedConstantKind.Enum, attrSym.
CommonConstructorArguments
(0).Kind)
3450
Assert.Equal(AttributeTargets.Class, DirectCast(attrSym.
CommonConstructorArguments
(0).Value, AttributeTargets))
3624
Assert.Equal(0, typeAttribute.
CommonConstructorArguments
.Length)
Emit\CompilationEmitTests.vb (6)
3289
Assert.Equal(1, typeAttribute.
CommonConstructorArguments
.Length)
3299
Assert.Equal(1, typeAttribute.
CommonConstructorArguments
.Length)
3319
Assert.Equal(1, typeAttribute.
CommonConstructorArguments
.Length)
3329
Assert.Equal(1, typeAttribute.
CommonConstructorArguments
.Length)
3344
Assert.Equal(1, methodAttribute.
CommonConstructorArguments
.Length)
3354
Assert.Equal(1, methodAttribute.
CommonConstructorArguments
.Length)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Binding\BindingErrorTests.vb (1)
1173
Dim argument = attribute.
CommonConstructorArguments
(0)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (143)
SymbolsTests\Metadata\PE\LoadingAttributes.vb (117)
101
Assert.Equal(True, aBoolInst.
CommonConstructorArguments
.Single().Value)
104
Assert.Equal(CByte(1), aByteInst.
CommonConstructorArguments
.Single().Value)
107
Assert.Equal("a"c, aCharInst.
CommonConstructorArguments
.Single().Value)
110
Assert.Equal(3.14159F, aSingleInst.
CommonConstructorArguments
.Single().Value)
113
Assert.Equal(3.1415926, aDoubleInst.
CommonConstructorArguments
.Single().Value)
116
Assert.Equal(16S, aInt16Inst.
CommonConstructorArguments
.Single().Value)
119
Assert.Equal(32, aInt32Inst.
CommonConstructorArguments
.Single().Value)
122
Assert.Equal(64L, aInt64Inst.
CommonConstructorArguments
.Single().Value)
125
Assert.Equal("object", aObjectInst.
CommonConstructorArguments
.Single().Value)
128
Assert.Equal("assembly", aStringInst.
CommonConstructorArguments
.Single().Value)
131
Assert.Equal("System.String", CType(aTypeInst.
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
173
Assert.Equal(True, aBoolInst.
CommonConstructorArguments
.Single().Value)
176
Assert.Equal(CByte(1), aByteInst.
CommonConstructorArguments
.Single().Value)
179
Assert.Equal("a"c, aCharInst.
CommonConstructorArguments
.Single().Value)
182
Assert.Equal(3.14159F, aSingleInst.
CommonConstructorArguments
.Single().Value)
185
Assert.Equal(3.1415926, aDoubleInst.
CommonConstructorArguments
.Single().Value)
188
Assert.Equal(16S, aInt16Inst.
CommonConstructorArguments
.Single().Value)
191
Assert.Equal(32, aInt32Inst.
CommonConstructorArguments
.Single().Value)
194
Assert.Equal(64L, aInt64Inst.
CommonConstructorArguments
.Single().Value)
197
Assert.Equal("object", aObjectInst.
CommonConstructorArguments
.Single().Value)
200
Assert.Equal("module", aStringInst.
CommonConstructorArguments
.Single().Value)
203
Assert.Equal("System.String", CType(aTypeInst.
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
246
Assert.Equal("C1", c1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
249
Assert.Equal("InnerC1", innerC1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
256
Assert.Equal("InnerC2", innerC2.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
259
Assert.Equal("field1", field1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
262
Assert.Equal("Property1", property1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
265
Assert.Equal("Sub1", sub1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
268
Assert.Equal("p1", sub1P1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
271
Assert.Equal("Function1", function1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
274
Assert.Equal("p1", function1P1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
450
Assert.Equal("C1", c1.GetAttributes.First().
CommonConstructorArguments
.Single().Value)
456
Assert.Equal("Integer", returnAttributes.First().
CommonConstructorArguments
.Single().Value)
462
Assert.Equal("Integer", returnAttributes.First().
CommonConstructorArguments
.Single().Value)
496
Assert.Equal("System.Collections.Generic.List(Of )", DirectCast(l.GetAttributes.First().
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
499
Assert.Equal("System.Collections.Generic.List(Of C1)", DirectCast(l.GetAttributes.First().
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
502
Assert.Equal("System.Collections.Generic.List(Of System.String)", DirectCast(l.GetAttributes.First().
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
505
Assert.Equal("System.Collections.Generic.List(Of System.Collections.Generic.KeyValuePair(Of C1, System.String))", DirectCast(l.GetAttributes.First().
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
508
Assert.Equal("System.Collections.Generic.List(Of System.Collections.Generic.KeyValuePair(Of System.String, C1.InnerC1(Of System.Int32).InnerC2(Of System.String, System.String)))", DirectCast(l.GetAttributes.First().
CommonConstructorArguments
.Single().Value, Symbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
559
Dim t = field.GetAttributes.First().
CommonConstructorArguments
.Single().Type
566
t = arg.
CommonConstructorArguments
.Single().Type
572
t = arg.
CommonConstructorArguments
.Single().Type
684
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
686
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
687
Assert.Equal("InteropAttributes", a.
CommonConstructorArguments
(0).Value)
689
Assert.Equal(2, a.
CommonConstructorArguments
.Length)
691
Assert.Equal(2, a.
CommonConstructorArguments
(1).Value)
694
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
695
Assert.Equal("String", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
696
Assert.Equal("1234C65D-1234-447A-B786-64682CBEF136", a.
CommonConstructorArguments
(0).Value)
698
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
699
Assert.Equal(False, a.
CommonConstructorArguments
(0).Value)
705
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
707
Assert.Equal(False, a.
CommonConstructorArguments
(0).Value)
709
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
712
Assert.Equal("System.Runtime.InteropServices.ClassInterfaceType", a.
CommonConstructorArguments
(0).Type.ToDisplayString)
714
Assert.Equal(2, a.
CommonConstructorArguments
(0).Value)
716
Assert.Equal(4, a.
CommonConstructorArguments
.Length)
718
Assert.Equal(3, a.
CommonConstructorArguments
(2).Value)
720
Assert.Equal(0, a.
CommonConstructorArguments
.Length)
724
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
725
Assert.Equal(True, a.
CommonConstructorArguments
(0).Value)
728
Assert.Equal(2, a.
CommonConstructorArguments
.Length)
731
Assert.Equal(1, a.
CommonConstructorArguments
.Length)
732
Assert.Equal(8, a.
CommonConstructorArguments
(0).Value)
734
Assert.Equal(0, a.
CommonConstructorArguments
.Length)
784
Assert.Equal(GetType(String), attrSym.
CommonConstructorArguments
(0).Value.GetType())
785
Assert.Equal("ABCDEF5D-2448-447A-B786-64682CBEF123", attrSym.
CommonConstructorArguments
(0).Value)
792
Assert.Equal(GetType(Int32), attrSym.
CommonConstructorArguments
(0).Value.GetType())
793
Assert.Equal(1, attrSym.
CommonConstructorArguments
(0).Value)
798
Assert.Equal("Object", CType(attrSym.
CommonConstructorArguments
(0).Value, Symbol).ToString())
809
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
810
Assert.Equal(32, attrSym.
CommonConstructorArguments
(0).Value)
839
Assert.Equal(False, attrSym.
CommonConstructorArguments
(0).Value)
844
Assert.Equal(3, attrSym.
CommonConstructorArguments
(0).Value)
891
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length)
892
Assert.Equal("message", attrSym.
CommonConstructorArguments
(0).Value)
893
Assert.Equal(False, attrSym.
CommonConstructorArguments
(1).Value)
950
Assert.Equal(cbar, attrSym.
CommonConstructorArguments
(0).Value)
954
Assert.Equal("MyIndex", attrSym.
CommonConstructorArguments
(0).Value)
960
Assert.Equal(10, mem.GetAttributes().First().
CommonConstructorArguments
(0).Value)
993
Assert.Equal(1, attrSym.
CommonConstructorArguments
(0).Value)
1070
Assert.Equal(2, attrSym.
CommonConstructorArguments
.Length)
1071
Assert.Equal(3.1415926, attrSym.
CommonConstructorArguments
(0).Value) 'object
1077
Assert.Equal(3, attrSym.
CommonConstructorArguments
.Length)
1078
Assert.Equal("q"c, attrSym.
CommonConstructorArguments
(0).Value)
1079
Assert.Equal(CByte(2), attrSym.
CommonConstructorArguments
(1).Value)
1088
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length) ' p4 is default optional
1089
Assert.Equal("555", attrSym.
CommonConstructorArguments
(0).Value) ' object
1098
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
1100
Assert.Equal("SByte()", attrSym.
CommonConstructorArguments
(0).Type.ToDisplayString())
1161
Dim pos0 = a.
CommonConstructorArguments
(0).Values
1162
Assert.Equal("Char()", a.
CommonConstructorArguments
(0).Type.ToDisplayString())
1166
Assert.Equal("String()", a.
CommonConstructorArguments
(1).Type.ToDisplayString())
1167
Assert.Equal(3, a.
CommonConstructorArguments
(1).Values.Length)
1204
Assert.Equal(-1, prop.GetAttributes().First().
CommonConstructorArguments
(0).Value)
1218
Assert.Equal(3, attrSym.
CommonConstructorArguments
.Length)
1219
Assert.Equal(-8, attrSym.
CommonConstructorArguments
(0).Value) ' object
1220
Assert.Equal(CByte(255), attrSym.
CommonConstructorArguments
(1).Value)
1226
Assert.Equal(4, attrSym.
CommonConstructorArguments
.Length) ' p4 is default optional
1227
Assert.Equal(7, attrSym.
CommonConstructorArguments
(0).Value) ' object
1228
Assert.Equal(256&, attrSym.
CommonConstructorArguments
(1).Value)
1230
Assert.Equal(0.123!, attrSym.
CommonConstructorArguments
(2).Value)
1231
Assert.Equal(CShort(-2), attrSym.
CommonConstructorArguments
(3).Value)
1237
Assert.Equal(1, attrSym.
CommonConstructorArguments
.Length)
1239
Assert.Equal("AttributeUse.IFoo(Of System.Int16, System.UInt16)", TryCast(attrSym.
CommonConstructorArguments
(0).Value, NamedTypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
1262
Assert.Equal("4.0.30319.18408", attr1.
CommonConstructorArguments
(0).Value)
1266
Assert.Equal("4.0.30319.18408", attr1.
CommonConstructorArguments
(0).Value)
1292
Assert.Equal("System.Linq.Expressions.Expression.BinaryExpressionProxy", CType(attr1.
CommonConstructorArguments
(0).Value, TypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
1297
Assert.Equal("System.Linq.Expressions.Expression.TypeBinaryExpressionProxy", CType(attr1.
CommonConstructorArguments
(0).Value, TypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
1325
Assert.Equal("genericUriParserOptions", attr.
CommonConstructorArguments
(0).Value)
1362
Assert.Equal(1, attr.
CommonConstructorArguments
().Length)
1363
Assert.Equal("DataCategory_Mapping", attr.
CommonConstructorArguments
(0).Value)
1366
Assert.Equal(1, attr.
CommonConstructorArguments
().Length)
1367
Assert.Equal("DataAdapter_MissingMappingAction", attr.
CommonConstructorArguments
(0).Value)
1370
Assert.Equal(1, attr.
CommonConstructorArguments
().Length)
1371
Assert.Equal(1, attr.
CommonConstructorArguments
(0).Value)
SymbolsTests\Retargeting\NoPia.vb (24)
1119
Dim args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1130
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1141
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1152
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1210
Dim args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1221
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1232
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1243
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1301
Dim args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1312
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1323
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1334
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1383
Dim args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1394
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1453
Dim args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1464
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1475
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1486
args = attrTest1.GetAttributes()(0).
CommonConstructorArguments
1547
Dim argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
1551
argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
1555
argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
1562
argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
1565
argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
1569
argType = DirectCast(type.GetAttributes()(0).
CommonConstructorArguments
(0).Value, TypeSymbol)
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
142
Assert.Equal(1, attribute.
CommonConstructorArguments
.Length)
SymbolsTests\Source\ComClassTests.vb (1)
91
For Each arg In attr.
CommonConstructorArguments
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
155
Dim arg = attr.
CommonConstructorArguments
(i)