18 overrides of CommonConstructorArguments
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
57protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments
Symbols\Attributes\RetargetingAttributeData.cs (1)
42protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Symbols\Attributes\SourceAttributeData.cs (1)
202protected internal sealed override ImmutableArray<TypedConstant> CommonConstructorArguments
Symbols\Source\SynthesizedAttributeData.cs (2)
49protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _arguments; 79protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments => _original.CommonConstructorArguments;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Attributes\PEAttributeData.vb (1)
72Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant)
Symbols\Attributes\RetargetingAttributeData.vb (1)
58Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant)
Symbols\Attributes\SourceAttributeData.vb (1)
71Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant)
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
87Protected Overrides ReadOnly Property CommonConstructorArguments As ImmutableArray(Of TypedConstant)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Mvc.Api.Analyzers.Test (1)
DeclaredApiResponseMetadataTest.cs (1)
161protected override ImmutableArray<TypedConstant> CommonConstructorArguments => throw new System.NotImplementedException();
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
227 references to CommonConstructorArguments
Microsoft.CodeAnalysis (28)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
380if (attribute.CommonConstructorArguments.Length < 2) 387info.Id = attribute.CommonConstructorArguments[1].ValueInternal as string;
Symbols\Attributes\CommonAttributeData.cs (16)
42public ImmutableArray<TypedConstant> ConstructorArguments { get { return CommonConstructorArguments; } } 149var constructorArgs = this.CommonConstructorArguments; 205ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 242long value = this.CommonConstructorArguments[0].DecodeValue<long>(SpecialType.System_Int64); 275Debug.Assert(this.CommonConstructorArguments.Length == 1); 276string? diagnosticId = this.CommonConstructorArguments[0].ValueInternal as string; 312ImmutableArray<TypedConstant> args = this.CommonConstructorArguments; 369var args = this.CommonConstructorArguments; 395Debug.Assert(this.CommonConstructorArguments.Length == 0); 411if (attribute.CommonConstructorArguments.Length == 1) 416options = (MethodImplOptions)attribute.CommonConstructorArguments[0].DecodeValue<short>(SpecialType.System_Int16); 420options = attribute.CommonConstructorArguments[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum); 448int position = attribute.CommonConstructorArguments.Length; 490LayoutKind kind = attribute.CommonConstructorArguments[0].DecodeValue<LayoutKind>(SpecialType.System_Enum); 504int position = attribute.CommonConstructorArguments.Length; 572return DecodeAttributeUsageAttribute(this.CommonConstructorArguments[0], this.CommonNamedArguments);
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
43attr1.CommonConstructorArguments.SequenceEqual(attr2.CommonConstructorArguments, typedConstantComparer) && 58hash = 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; 305int position = arguments.Attribute.CommonConstructorArguments.Length; 371int position = arguments.Attribute.CommonConstructorArguments.Length;
Microsoft.CodeAnalysis.CSharp (74)
Compiler\ClsComplianceChecker.cs (1)
1208ImmutableArray<TypedConstant> args = data.CommonConstructorArguments;
Emitter\Model\AttributeDataAdapter.cs (2)
21var commonArgs = this.CommonConstructorArguments; 76return this.CommonConstructorArguments.Length;
Emitter\NoPia\EmbeddedEvent.cs (1)
89sourceInterface = attrData.CommonConstructorArguments[0].ValueInternal as NamedTypeSymbol;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
210constructorArguments = attrData.CommonConstructorArguments;
Symbols\Attributes\AttributeData.cs (13)
55get { return this.CommonConstructorArguments; } 139if (this.CommonConstructorArguments.IsEmpty && this.CommonNamedArguments.IsEmpty) 152foreach (var constructorArgument in this.CommonConstructorArguments) 253var value = arguments.Attribute.CommonConstructorArguments[0]; 303var value = arguments.Attribute.CommonConstructorArguments[1]; 309var sense = arguments.Attribute.CommonConstructorArguments[0].DecodeValue<bool>(SpecialType.System_Boolean); 343var ctorArgs = this.CommonConstructorArguments; 574TypedConstant ctorArgument = this.CommonConstructorArguments[0]; 599TypedConstant ctorArgument = this.CommonConstructorArguments[0]; 625var guidString = (string?)this.CommonConstructorArguments[0].ValueInternal; 642var builderType = (TypeSymbol?)CommonConstructorArguments[0].ValueInternal; 643var methodName = (string?)CommonConstructorArguments[1].ValueInternal; 806var arguments = attribute.CommonConstructorArguments;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
352if (signatureIndex == 1 && attrData.CommonConstructorArguments.Length == 2) 354scope = attrData.CommonConstructorArguments[0].ValueInternal as string; 355identifier = attrData.CommonConstructorArguments[1].ValueInternal as string; 1178ImmutableArray<TypedConstant> oldAttributeCtorArguments = oldAttributeData.CommonConstructorArguments;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
189int offset = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (25)
1518result.AssemblySignatureKeyAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 1524result.AssemblyKeyFileAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 1530result.AssemblyKeyContainerAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2210TypeSymbol forwardedType = (TypeSymbol)arguments.Attribute.CommonConstructorArguments[0].ValueInternal; 2280string displayName = (string)attrData.CommonConstructorArguments[0].ValueInternal; 2379var signatureKey = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2389arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyFileAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2393arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyContainerAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2397arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDelaySignAttributeSetting = (bool)attribute.CommonConstructorArguments[0].ValueInternal ? ThreeState.True : ThreeState.False; 2401string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2415string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2426arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTitleAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2430arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDescriptionAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2434var cultureString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2452arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCompanyAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2456arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyProductAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2460arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyInformationalVersionAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2466string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2475arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCopyrightAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2479arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTrademarkAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2483object value = attribute.CommonConstructorArguments[0].ValueInternal; 2520if (attribute.CommonConstructorArguments.Length == 1) 2527if (attribute.CommonConstructorArguments.Length == 2) 2574object value = attribute.CommonConstructorArguments[0].ValueInternal; 2600int argCount = attribute.CommonConstructorArguments.Length;
Symbols\Source\SourceComplexParameterSymbol.cs (7)
683var constructorArguments = attributeData.CommonConstructorArguments; 915var arguments = attribute.CommonConstructorArguments; 1004Debug.Assert(attribute.CommonConstructorArguments.Length == 1); 1007var arg = attribute.CommonConstructorArguments[0]; 1229else if (attribute.CommonConstructorArguments.Length == 1 && 1289Debug.Assert(arguments.Attribute.IsTargetAttribute(AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.Attribute.CommonConstructorArguments.Length == 1); 1314TypedConstant constructorArgument = arguments.Attribute.CommonConstructorArguments[0];
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1482&& attr.CommonConstructorArguments.Length == 1 1483&& attr.CommonConstructorArguments[0].Kind == TypedConstantKind.Type) 1485builderArgument = (TypeSymbol)attr.CommonConstructorArguments[0].ValueInternal!;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
381if (attributeData.CommonConstructorArguments is [{ ValueInternal: int priority }]) 657attribute.CommonConstructorArguments[0].DecodeValue<bool>(SpecialType.System_Boolean) 1005var constructorArguments = arguments.Attribute.CommonConstructorArguments;
Symbols\Source\SourceNamedTypeSymbol.cs (6)
1036Debug.Assert(attributeData.CommonConstructorArguments[0].Kind == TypedConstantKind.Type); 1037TypeSymbol? builderType = attributeData.CommonConstructorArguments[0].ValueInternal as TypeSymbol; 1189var builderType = attribute.CommonConstructorArguments[0].ValueInternal as TypeSymbol; 1199string? methodName = attribute.CommonConstructorArguments[1].DecodeValue<string>(SpecialType.System_String); 1211int length = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32); 1350TypedConstant argument = attribute.CommonConstructorArguments[0];
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (2)
826if (attribute.CommonConstructorArguments.IsEmpty && attribute.CommonNamedArguments.IsEmpty) 833foreach (TypedConstant argument in attribute.CommonConstructorArguments)
Symbols\Source\SourcePropertySymbolBase.cs (3)
1472string? indexerName = attributeData.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String); 1490if (attributeData.CommonConstructorArguments is [{ ValueInternal: int priority }]) 1734string indexerName = attribute.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String);
Symbols\Symbol_Attributes.cs (2)
227if (!SyntaxFacts.IsValidIdentifier((string?)arguments.Attribute.CommonConstructorArguments[0].ValueInternal)) 481boundAttribute.CommonConstructorArguments[0].ValueInternal is TypeSymbol &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (46)
Attributes\AttributeTests.cs (14)
3532Assert.Equal(2, attr.CommonConstructorArguments.Length); 3539Assert.Equal(2, attr.CommonConstructorArguments.Length); 3546Assert.Equal(2, attr.CommonConstructorArguments.Length); 4085Assert.Equal(1, attr.CommonConstructorArguments.Length); 4227Assert.Equal(2, attrs.First().CommonConstructorArguments.Length); 4317Assert.Equal(1, attr.CommonConstructorArguments.Length); 4901var ca = goo.GetAttributes().First().CommonConstructorArguments.First(); 5254Assert.Equal(1, attr.CommonConstructorArguments.Length); 5260Assert.Equal(1, attr.CommonConstructorArguments.Length); 5315Assert.Equal(1, attr.CommonConstructorArguments.Length); 5319Assert.Equal(1, attr.CommonConstructorArguments.Length); 5327Assert.Equal(1, attr.CommonConstructorArguments.Length); 5331Assert.Equal(1, attr.CommonConstructorArguments.Length); 5723var args = info.Symbol.GetAttributes()[0].CommonConstructorArguments;
Attributes\AttributeTests_CallerInfoAttributes.cs (5)
2299var arguments = compilation.GetTypeByMetadataName("Program").GetAttributes().Single().CommonConstructorArguments; 4408Assert.Equal(1, attr.CommonConstructorArguments.Length); 4410Assert.Equal(1, attr.CommonConstructorArguments[0].Value); 4438Assert.Equal(1, attr.CommonConstructorArguments.Length); 4440Assert.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)
139Assert.Equal(4, attrSym.CommonConstructorArguments.Length); 161Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 185Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 190Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 197Assert.Equal(1, attrSym.CommonConstructorArguments.Length); 199Assert.Equal(TypeLibFuncFlags.FDefaultBind, (TypeLibFuncFlags)attrSym.CommonConstructorArguments[0].Value); 296Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 405Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 419Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 427Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 429Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 438Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 440Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 455Assert.Equal(5, attrSym.CommonConstructorArguments.Length); 460Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 479Assert.Equal(0, attrSym.CommonConstructorArguments.Length); 5155Assert.Equal(1, attrSym.CommonConstructorArguments.Length); 5161Assert.Equal(1, attrSym.CommonConstructorArguments.Length);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableReferenceTypesTests.cs (2)
6476Assert.Equal(@"{{""a""}}", attribute.CommonConstructorArguments.Single().ToCSharpString()); 6498Assert.Equal(@"{{""a""}}", attribute.CommonConstructorArguments.Single().ToCSharpString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (67)
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\RequiredMembersTests.cs (1)
7981constructor.GetAttributes().Select(a => $"{a.AttributeClass.ToTestDisplayString()}({string.Join(", ", a.CommonConstructorArguments.Select(arg => arg.ToCSharpString()))})"));
Symbols\Retargeting\NoPia.cs (18)
2057var args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2072args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2087args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2102args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2182var args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2197args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2212args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2227args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2307var args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2322args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2337args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2352args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2419var args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2434args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2515var args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2530args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2545args = attrTest1.GetAttributes()[0].CommonConstructorArguments; 2560args = attrTest1.GetAttributes()[0].CommonConstructorArguments;
Symbols\Retargeting\RetargetCustomAttributes.cs (1)
151Assert.Equal(1, attribute.CommonConstructorArguments.Length);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
405var arg = attr.CommonConstructorArguments[i];
Microsoft.CodeAnalysis.VisualBasic (9)
Emit\AttributeDataAdapter.vb (2)
17Return CommonConstructorArguments.SelectAsArray(Function(arg) CreateMetadataExpression(arg, context)) 44Return CommonConstructorArguments.Length
Symbols\Attributes\AttributeData.vb (7)
48Return Me.CommonConstructorArguments 104If Not Me.CommonConstructorArguments.Any() And Not Me.CommonNamedArguments.Any() Then 116For Each constructorArgument In Me.CommonConstructorArguments 233Dim firstArg As TypedConstant = Me.CommonConstructorArguments.FirstOrDefault() 437Dim ctorArgument As TypedConstant = Me.CommonConstructorArguments(0) 464Dim ctorArgument As TypedConstant = Me.CommonConstructorArguments(0) 482Dim ctorArgument As TypedConstant = Me.CommonConstructorArguments(0)