46 references to Values
ConfigurationSchemaGenerator (2)
ConfigSchemaGenerator.cs (2)
82(exclusionPaths ??= new()).AddRange(exclusionPathsArg.Values.Select(v => $"{path}:{(string)v.Value}")); 93(logCategories ??= new()).AddRange(args[0].Values.Select(v => (string)v.Value));
Microsoft.CodeAnalysis (2)
Symbols\Attributes\UnmanagedCallersOnlyAttributeData.cs (2)
38&& (value.Values.IsDefaultOrEmpty || value.Values.All(v => v.Kind == TypedConstantKind.Type));
Microsoft.CodeAnalysis.CSharp (10)
Emitter\Model\AttributeDataAdapter.cs (2)
121Debug.Assert(!argument.Values.IsDefault); 122var values = argument.Values;
Symbols\MethodSymbol.cs (2)
1003if (value.Values.IsDefaultOrEmpty) 1010foreach (var callConvTypedConstant in value.Values)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
1230var newArray = RetargetAttributeConstructorArguments(oldConstant.Values); 1231if (!TypeSymbol.Equals(newConstantType, oldConstantType, TypeCompareKind.ConsiderEverything2) || newArray != oldConstant.Values)
Symbols\Source\SourceComplexParameterSymbol.cs (3)
1291parameters = ArrayBuilder<ParameterSymbol?>.GetInstance(constructorArgument.Values.Length); 1292var ordinalsBuilder = ArrayBuilder<int>.GetInstance(constructorArgument.Values.Length); 1293foreach (var nestedArgument in constructorArgument.Values)
Symbols\TypedConstantExtensions.cs (1)
27return "{" + string.Join(", ", constant.Values.Select(v => v.ToCSharpString())) + "}";
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
44[.. typedConstant.Values.Select(v => GenerateExpression(generator, v))]));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests.cs (1)
655Assert.Equal(new object[] { 1, 2, 3 }, attributeData.ConstructorArguments.Single().Values.Select(arg => arg.Value));
Attributes\AttributeTests_Dynamic.cs (1)
543ImmutableArray<TypedConstant> actualTransformFlags = argument.Values;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\TypedConstantTests.cs (4)
62Assert.Equal(commonArray.Values.Single(), langArray.Values.Single()); 66Assert.Equal(commonArray.Values, commonArray2.Values);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (1)
427return AreEqual(arg.Values, expected);
TestAttributesVisitor.cs (1)
192printValues(builder, value.Values);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
296foreach (var item in constant.Values)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
44[.. typedConstant.Values.Select(v => GenerateExpression(generator, v))]));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
4975var type = (ITypeSymbol)attribute.ConstructorArguments[0].Values[2].Value;
Microsoft.CodeAnalysis.VisualBasic (5)
Emit\AttributeDataAdapter.vb (2)
81Debug.Assert(Not argument.Values.IsDefault) 83Dim values = argument.Values
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
730Dim newArray = RetargetAttributeConstructorArguments(oldConstant.Values) 731If newConstantType IsNot oldConstantType OrElse newArray <> oldConstant.Values Then
Symbols\TypedConstant.vb (1)
34Return "{" & String.Join(", ", constant.Values.Select(Function(v) v.ToVisualBasicString())) & "}"
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
28SyntaxFactory.SeparatedList(typedConstant.Values.Select(Function(v) GenerateExpression(generator, v))))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\TypedConstantTests.vb (4)
52Assert.Equal(commonArray.Values.Single(), langArray.Values.Single()) 56Assert.Equal(commonArray.Values, commonArray2.Values)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Extensions.vb (1)
182Return AreEqual(arg.Values, expected)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
28SyntaxFactory.SeparatedList(typedConstant.Values.Select(Function(v) GenerateExpression(generator, v))))
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
854private static object GetItem(TypedConstant arg) => arg.Kind == TypedConstantKind.Array ? arg.Values : arg.Value;
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (2)
512validationAttr.ConstructorArguments.Add(GetArrayArgumentExpression(argument.Values, isParams)); 525validationAttr.Properties.Add(namedArgument.Key, GetArrayArgumentExpression(namedArgument.Value.Values, isParams));
Microsoft.Gen.Metrics (1)
Parser.cs (1)
305foreach (var item in arg.Values)
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
305foreach (var item in arg.Values)
Microsoft.Interop.ComInterfaceGenerator (1)
VirtualMethodPointerStubGenerator.cs (1)
303foreach (TypedConstant callConv in arg.Value.Values)
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
130foreach (TypedConstant callConv in arg.Value.Values)
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
311foreach (TypedConstant element in namedArg.Value.Values)