10 overrides of CommonConstructorArguments
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
57
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
Symbols\Attributes\RetargetingAttributeData.cs (1)
42
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Symbols\Attributes\SourceAttributeData.cs (1)
202
protected internal sealed override ImmutableArray<TypedConstant>
CommonConstructorArguments
Symbols\Source\SynthesizedAttributeData.cs (2)
49
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _arguments;
79
protected internal override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _original.CommonConstructorArguments;
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
22
protected override ImmutableArray<TypedConstant>
CommonConstructorArguments
=> _constructorArguments;
103 references to CommonConstructorArguments
Microsoft.CodeAnalysis (28)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (2)
404
if (attribute.
CommonConstructorArguments
.Length < 2)
411
info.Id = attribute.
CommonConstructorArguments
[1].ValueInternal as string;
Symbols\Attributes\CommonAttributeData.cs (16)
42
public ImmutableArray<TypedConstant> ConstructorArguments { get { return
CommonConstructorArguments
; } }
148
var constructorArgs = this.
CommonConstructorArguments
;
204
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
241
long value = this.
CommonConstructorArguments
[0].DecodeValue<long>(SpecialType.System_Int64);
274
Debug.Assert(this.
CommonConstructorArguments
.Length == 1);
275
string? diagnosticId = this.
CommonConstructorArguments
[0].ValueInternal as string;
311
ImmutableArray<TypedConstant> args = this.
CommonConstructorArguments
;
368
var args = this.
CommonConstructorArguments
;
394
Debug.Assert(this.
CommonConstructorArguments
.Length == 0);
410
if (attribute.
CommonConstructorArguments
.Length == 1)
415
options = (MethodImplOptions)attribute.
CommonConstructorArguments
[0].DecodeValue<short>(SpecialType.System_Int16);
419
options = attribute.
CommonConstructorArguments
[0].DecodeValue<MethodImplOptions>(SpecialType.System_Enum);
447
int position = attribute.
CommonConstructorArguments
.Length;
489
LayoutKind kind = attribute.
CommonConstructorArguments
[0].DecodeValue<LayoutKind>(SpecialType.System_Enum);
503
int position = attribute.
CommonConstructorArguments
.Length;
571
return DecodeAttributeUsageAttribute(this.
CommonConstructorArguments
[0], this.CommonNamedArguments);
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
43
attr1.
CommonConstructorArguments
.SequenceEqual(attr2.
CommonConstructorArguments
, typedConstantComparer) &&
58
hash = Hash.Combine(GetHashCodeForConstructorArguments(attr.
CommonConstructorArguments
), hash);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (7)
104
unmanagedType = (UnmanagedType)attribute.
CommonConstructorArguments
[0].DecodeValue<short>(SpecialType.System_Int16);
108
unmanagedType = attribute.
CommonConstructorArguments
[0].DecodeValue<UnmanagedType>(SpecialType.System_Enum);
125
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
179
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
216
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
305
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
371
int position = arguments.Attribute.
CommonConstructorArguments
.Length;
Microsoft.CodeAnalysis.CSharp (75)
Compiler\ClsComplianceChecker.cs (1)
1208
ImmutableArray<TypedConstant> args = data.
CommonConstructorArguments
;
Emitter\Model\AttributeDataAdapter.cs (2)
21
var commonArgs = this.
CommonConstructorArguments
;
76
return this.
CommonConstructorArguments
.Length;
Emitter\NoPia\EmbeddedEvent.cs (1)
89
sourceInterface = attrData.
CommonConstructorArguments
[0].ValueInternal as NamedTypeSymbol;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
212
constructorArguments = attrData.
CommonConstructorArguments
;
Symbols\Attributes\AttributeData.cs (13)
55
get { return this.
CommonConstructorArguments
; }
139
if (this.
CommonConstructorArguments
.IsEmpty && this.CommonNamedArguments.IsEmpty)
152
foreach (var constructorArgument in this.
CommonConstructorArguments
)
253
var value = arguments.Attribute.
CommonConstructorArguments
[0];
303
var value = arguments.Attribute.
CommonConstructorArguments
[1];
309
var sense = arguments.Attribute.
CommonConstructorArguments
[0].DecodeValue<bool>(SpecialType.System_Boolean);
343
var ctorArgs = this.
CommonConstructorArguments
;
574
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
599
TypedConstant ctorArgument = this.
CommonConstructorArguments
[0];
625
var guidString = (string?)this.
CommonConstructorArguments
[0].ValueInternal;
642
var builderType = (TypeSymbol?)
CommonConstructorArguments
[0].ValueInternal;
643
var methodName = (string?)
CommonConstructorArguments
[1].ValueInternal;
806
var arguments = attribute.
CommonConstructorArguments
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
352
if (signatureIndex == 1 && attrData.
CommonConstructorArguments
.Length == 2)
354
scope = attrData.
CommonConstructorArguments
[0].ValueInternal as string;
355
identifier = attrData.
CommonConstructorArguments
[1].ValueInternal as string;
1178
ImmutableArray<TypedConstant> oldAttributeCtorArguments = oldAttributeData.
CommonConstructorArguments
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
195
int offset = attribute.
CommonConstructorArguments
[0].DecodeValue<int>(SpecialType.System_Int32);
Symbols\Source\SourceAssemblySymbol.cs (25)
1518
result.AssemblySignatureKeyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1524
result.AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
1530
result.AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2210
TypeSymbol forwardedType = (TypeSymbol)arguments.Attribute.
CommonConstructorArguments
[0].ValueInternal;
2280
string displayName = (string)attrData.
CommonConstructorArguments
[0].ValueInternal;
2398
var signatureKey = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2408
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyFileAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2412
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyKeyContainerAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2416
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDelaySignAttributeSetting = (bool)attribute.
CommonConstructorArguments
[0].ValueInternal ? ThreeState.True : ThreeState.False;
2420
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2434
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2445
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTitleAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2449
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyDescriptionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2453
var cultureString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2471
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCompanyAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2475
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyProductAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2479
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyInformationalVersionAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2485
string verString = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2494
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyCopyrightAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2498
arguments.GetOrCreateData<CommonAssemblyWellKnownAttributeData>().AssemblyTrademarkAttributeSetting = (string)attribute.
CommonConstructorArguments
[0].ValueInternal;
2502
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2539
if (attribute.
CommonConstructorArguments
.Length == 1)
2546
if (attribute.
CommonConstructorArguments
.Length == 2)
2593
object value = attribute.
CommonConstructorArguments
[0].ValueInternal;
2619
int argCount = attribute.
CommonConstructorArguments
.Length;
Symbols\Source\SourceComplexParameterSymbol.cs (7)
683
var constructorArguments = attributeData.
CommonConstructorArguments
;
910
var arguments = attribute.
CommonConstructorArguments
;
999
Debug.Assert(attribute.
CommonConstructorArguments
.Length == 1);
1002
var arg = attribute.
CommonConstructorArguments
[0];
1224
else if (attribute.
CommonConstructorArguments
.Length == 1 &&
1284
Debug.Assert(arguments.Attribute.IsTargetAttribute(AttributeDescription.InterpolatedStringHandlerArgumentAttribute) && arguments.Attribute.
CommonConstructorArguments
.Length == 1);
1309
TypedConstant constructorArgument = arguments.Attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourceMemberContainerSymbol.cs (3)
1576
&& attr.
CommonConstructorArguments
.Length == 1
1577
&& attr.
CommonConstructorArguments
[0].Kind == TypedConstantKind.Type)
1579
builderArgument = (TypeSymbol)attr.
CommonConstructorArguments
[0].ValueInternal!;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
381
if (attributeData.
CommonConstructorArguments
is [{ ValueInternal: int priority }])
663
attribute.
CommonConstructorArguments
[0].DecodeValue<bool>(SpecialType.System_Boolean)
1009
var constructorArguments = arguments.Attribute.
CommonConstructorArguments
;
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (2)
826
if (attribute.
CommonConstructorArguments
.IsEmpty && attribute.CommonNamedArguments.IsEmpty)
833
foreach (TypedConstant argument in attribute.
CommonConstructorArguments
)
Symbols\Source\SourceNamedTypeSymbol.cs (7)
1040
Debug.Assert(attributeData.
CommonConstructorArguments
[0].Kind == TypedConstantKind.Type);
1041
TypeSymbol? builderType = attributeData.
CommonConstructorArguments
[0].ValueInternal as TypeSymbol;
1058
if (!attributeData.HasErrors && attributeData.
CommonConstructorArguments
.IsEmpty)
1199
var builderType = attribute.
CommonConstructorArguments
[0].ValueInternal as TypeSymbol;
1209
string? methodName = attribute.
CommonConstructorArguments
[1].DecodeValue<string>(SpecialType.System_String);
1221
int length = attribute.
CommonConstructorArguments
[0].DecodeValue<int>(SpecialType.System_Int32);
1360
TypedConstant argument = attribute.
CommonConstructorArguments
[0];
Symbols\Source\SourcePropertySymbolBase.cs (3)
1521
string? indexerName = attributeData.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
1539
if (attributeData.
CommonConstructorArguments
is [{ ValueInternal: int priority }])
1784
string indexerName = attribute.
CommonConstructorArguments
[0].DecodeValue<string>(SpecialType.System_String);
Symbols\Symbol_Attributes.cs (2)
227
if (!SyntaxFacts.IsValidIdentifier((string?)arguments.Attribute.
CommonConstructorArguments
[0].ValueInternal))
482
boundAttribute.
CommonConstructorArguments
[0].ValueInternal is TypeSymbol &&