14 overrides of CommonConstructorArguments
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\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.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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22protected override ImmutableArray<TypedConstant> CommonConstructorArguments => _constructorArguments;
112 references to CommonConstructorArguments
Microsoft.CodeAnalysis (28)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
404if (attribute.CommonConstructorArguments.Length < 2) 411info.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 (75)
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)
212constructorArguments = 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; 2398var signatureKey = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2408arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyFileAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2412arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyContainerAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2416arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDelaySignAttributeSetting = (bool)attribute.CommonConstructorArguments[0].ValueInternal ? ThreeState.True : ThreeState.False; 2420string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2434string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2445arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTitleAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2449arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDescriptionAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2453var cultureString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2471arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCompanyAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2475arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyProductAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2479arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyInformationalVersionAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2485string verString = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2494arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCopyrightAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2498arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTrademarkAttributeSetting = (string)attribute.CommonConstructorArguments[0].ValueInternal; 2502object value = attribute.CommonConstructorArguments[0].ValueInternal; 2539if (attribute.CommonConstructorArguments.Length == 1) 2546if (attribute.CommonConstructorArguments.Length == 2) 2593object value = attribute.CommonConstructorArguments[0].ValueInternal; 2619int argCount = attribute.CommonConstructorArguments.Length;
Symbols\Source\SourceComplexParameterSymbol.cs (7)
683var constructorArguments = attributeData.CommonConstructorArguments; 910var arguments = attribute.CommonConstructorArguments; 999Debug.Assert(attribute.CommonConstructorArguments.Length == 1); 1002var arg = attribute.CommonConstructorArguments[0]; 1224else if (attribute.CommonConstructorArguments.Length == 1 && 1284Debug.Assert(arguments.Attribute.IsTargetAttribute(AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.Attribute.CommonConstructorArguments.Length == 1); 1309TypedConstant constructorArgument = arguments.Attribute.CommonConstructorArguments[0];
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1577&& attr.CommonConstructorArguments.Length == 1 1578&& attr.CommonConstructorArguments[0].Kind == TypedConstantKind.Type) 1580builderArgument = (TypeSymbol)attr.CommonConstructorArguments[0].ValueInternal!;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
381if (attributeData.CommonConstructorArguments is [{ ValueInternal: int priority }]) 663attribute.CommonConstructorArguments[0].DecodeValue<bool>(SpecialType.System_Boolean) 1009var constructorArguments = arguments.Attribute.CommonConstructorArguments;
Symbols\Source\SourceNamedTypeSymbol.cs (7)
1040Debug.Assert(attributeData.CommonConstructorArguments[0].Kind == TypedConstantKind.Type); 1041TypeSymbol? builderType = attributeData.CommonConstructorArguments[0].ValueInternal as TypeSymbol; 1058if (!attributeData.HasErrors && attributeData.CommonConstructorArguments.IsEmpty) 1199var builderType = attribute.CommonConstructorArguments[0].ValueInternal as TypeSymbol; 1209string? methodName = attribute.CommonConstructorArguments[1].DecodeValue<string>(SpecialType.System_String); 1221int length = attribute.CommonConstructorArguments[0].DecodeValue<int>(SpecialType.System_Int32); 1360TypedConstant 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)
1486string? indexerName = attributeData.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String); 1504if (attributeData.CommonConstructorArguments is [{ ValueInternal: int priority }]) 1747string indexerName = attribute.CommonConstructorArguments[0].DecodeValue<string>(SpecialType.System_String);
Symbols\Symbol_Attributes.cs (2)
227if (!SyntaxFacts.IsValidIdentifier((string?)arguments.Attribute.CommonConstructorArguments[0].ValueInternal)) 482boundAttribute.CommonConstructorArguments[0].ValueInternal is TypeSymbol &&
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)