32 references to ConstructorArguments
Microsoft.CodeAnalysis.CodeStyle (3)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
828attribute.ConstructorArguments is [_, { Kind: TypedConstantKind.Primitive, Value: string checkId }, ..]) 837attribute.ConstructorArguments[0] is
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
590attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
AttributeGenerator.cs (2)
87if (attribute.ConstructorArguments.Length == 0 && attribute.NamedArguments.Length == 0) 91arguments.AddRange(attribute.ConstructorArguments.Select(c =>
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (5)
Attributes\AttributeTests.cs (1)
713Assert.Equal("M0", attrs.Single().ConstructorArguments.Single().Value);
Attributes\AttributeTests_CallerInfoAttributes.cs (4)
1944var attributeArguments = namedType.GetAttributes().Single().ConstructorArguments; 1976var attributeArguments = namedType.GetAttributes().Single().ConstructorArguments; 2008var attributeArguments = namedType.GetAttributes().Single().ConstructorArguments; 2041var attributeArguments = namedType.GetAttributes().Single().ConstructorArguments;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
559Assert.Equal(42, attributeData.ConstructorArguments.Single().Value);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
4454Assert.Equal("DEBUG", attribute.ConstructorArguments[0].Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
AttributeGenerator.cs (2)
87if (attribute.ConstructorArguments.Length == 0 && attribute.NamedArguments.Length == 0) 91arguments.AddRange(attribute.ConstructorArguments.Select(c =>
Microsoft.CodeAnalysis.Features (10)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
828attribute.ConstructorArguments is [_, { Kind: TypedConstantKind.Primitive, Value: string checkId }, ..]) 837attribute.ConstructorArguments[0] is
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
590attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
262if (attribute is { ConstructorArguments: [{ Type.SpecialType: SpecialType.System_String, Value: string stringValue }] })
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
4419match.ConstructorArguments.SequenceEqual(attribute.ConstructorArguments, TypedConstantComparer.Instance) && 4763if (attribute.AttributeClass.Equals(lazyLayoutAttribute) && attribute.ConstructorArguments.Length == 1) 4765var layoutValue = attribute.ConstructorArguments.Single().Value;
EmbeddedLanguages\EmbeddedLanguageDetector.cs (2)
335if (attribute.ConstructorArguments.Length == 0) 359var argument = attribute.ConstructorArguments[0];
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests.vb (1)
2245Assert.Equal("M0", attrs.Single().ConstructorArguments.Single().Value)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\AttributeGenerator.vb (2)
42If attribute.ConstructorArguments.Length = 0 AndAlso attribute.NamedArguments.Length = 0 Then 48arguments.AddRange(attribute.ConstructorArguments.Select(
Microsoft.CodeAnalysis.Workspaces (5)
Editing\SyntaxGenerator.cs (1)
1029var args = attribute.ConstructorArguments.Select(a => this.AttributeArgument(this.TypedConstantExpression(a)))
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
241var typeNameConstant = attr.ConstructorArguments.FirstOrDefault();
Shared\Extensions\ISymbolExtensions.cs (3)
142attribute.ConstructorArguments is [{ Value: int value }]) 192if (attribute.ConstructorArguments.Length == 1) 199var argumentValue = attribute.ConstructorArguments.First().Value;