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