249 references to Value
ConfigurationSchemaGenerator (6)
ConfigSchemaEmitter.cs (1)
427attribute.ConstructorArguments[0].Value is int value &&
ConfigSchemaGenerator.cs (4)
70var path = (string)args[0].Value; 77(types ??= new()).Add((INamedTypeSymbol)args[1].Value); 82(exclusionPaths ??= new()).AddRange(exclusionPathsArg.Values.Select(v => $"{path}:{(string)v.Value}")); 93(logCategories ??= new()).AddRange(args[0].Values.Select(v => (string)v.Value));
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
675string configKeyName = attributeData?.ConstructorArguments.FirstOrDefault().Value as string ?? propertyName;
ILLink.RoslynAnalyzer (11)
COMAnalyzer.cs (2)
65 var unmanagedType = typedConstant.Value; 116 (LayoutKind) structLayoutAttribute.ConstructorArguments[0].Value! == LayoutKind.Auto) {
DataFlow\LocalDataFlowVisitor.cs (1)
765 if (attributeArgument.Value is not bool doesNotReturnIfConditionValue)
ISymbolExtensions.cs (3)
61 return (DynamicallyAccessedMemberTypes) dynamicallyAccessedMembers!.ConstructorArguments[0].Value!; 77 return (DynamicallyAccessedMemberTypes) dynamicallyAccessedMembers.ConstructorArguments[0].Value!; 84 if (featureGuardAttribute.ConstructorArguments is [TypedConstant { Value: INamedTypeSymbol featureType }])
RequiresAnalyzerBase.cs (2)
103 (string) requiresAttribute.ConstructorArguments[0].Value!, 264 var url = requiresAttribute?.NamedArguments.FirstOrDefault (na => na.Key == "Url").Value.Value?.ToString ();
RequiresAssemblyFilesAnalyzer.cs (1)
133 message = requiresAttribute.ConstructorArguments[0].Value?.ToString () ?? "";
RequiresDynamicCodeAnalyzer.cs (1)
144 var message = (string) requiresAttribute!.ConstructorArguments[0].Value!;
RequiresUnreferencedCodeUtils.cs (1)
41 var message = (string) requiresAttribute!.ConstructorArguments[0].Value!;
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (3)
209var level = (LogLevel)argLevel.Value.Value!; 217var message = argMessage.Value.Value!.ToString(); 648var eventId = (int)arg.Value.Value!;
Microsoft.AspNetCore.App.Analyzers (5)
Mvc\DetectAmbiguousActionRoutes.cs (1)
123if (actionNameAttribute != null && actionNameAttribute.ConstructorArguments.Length > 0 && actionNameAttribute.ConstructorArguments[0].Value is string name)
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
126return (bool)arg.Value.Value!;
RouteEmbeddedLanguage\Infrastructure\RoutePatternParametersDetector.cs (1)
56var routeParameterName = (string)routeParameterNameConstant.Value!;
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
358if (argument.Kind != TypedConstantKind.Primitive || argument.Value is not string argString)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
211argumentValue = (T?)routeParameterNameConstant.Value;
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentFacts.cs (1)
68return kvp.Value.Value as bool? ?? false;
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentFacts.cs (1)
68return kvp.Value.Value as bool? ?? false;
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
211argumentValue = (T?)routeParameterNameConstant.Value;
StaticRouteHandlerModel\EndpointParameter.cs (1)
159KeyedServiceKey = SymbolDisplay.FormatPrimitive(constructorArgument.Value!, true, true);
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
166namedArgumentValue.Value is string name)
Microsoft.AspNetCore.Mvc.Api.Analyzers (9)
ActualApiResponseMetadataFactory.cs (1)
251attribute.ConstructorArguments[0].Value is int statusCode)
SymbolApiConventionMatcher.cs (2)
71var argEnum = attribute.ConstructorArguments[0].Value; 93var argEnum = attribute.ConstructorArguments[0].Value;
SymbolApiResponseMetadataProvider.cs (6)
56errorTypeAttribute.ConstructorArguments[0].Value is ITypeSymbol typeSymbol) 99!(attribute.ConstructorArguments[0].Value is ITypeSymbol conventionType)) 105!(attribute.ConstructorArguments[1].Value is string conventionMethodName)) 175!(attribute.ConstructorArguments[0].Value is ITypeSymbol conventionType)) 196namedArgumentValue.Value is int statusCode) 220if (argument.Kind == TypedConstantKind.Primitive && argument.Value is int statusCode)
Microsoft.CodeAnalysis (1)
Symbols\TypedConstant.cs (1)
91/// Unlike <see cref="Value"/> returns <see cref="ISymbolInternal"/> when the value is a symbol.
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
833attribute.ConstructorArguments is [_, { Kind: TypedConstantKind.Primitive, Value: string checkId }, ..]) 845Value: string categoryArg
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
711attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (2)
48ConstructorArguments: [{ Value: int version }, { Value: string attributeData }]
Microsoft.CodeAnalysis.CSharp (2)
Symbols\TypedConstantExtensions.cs (2)
32Debug.Assert(constant.Value is object); 33return "typeof(" + constant.Value.ToString() + ")";
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
32return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference: true); 35return typedConstant.Value is ITypeSymbol typeSymbol
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests.cs (2)
655Assert.Equal(new object[] { 1, 2, 3 }, attributeData.ConstructorArguments.Single().Values.Select(arg => arg.Value)); 712Assert.Equal("M0", attrs.Single().ConstructorArguments.Single().Value);
Attributes\AttributeTests_CallerInfoAttributes.cs (2)
2301Assert.Equal(3, arguments[0].Value); 2302Assert.Equal(0, arguments[1].Value);
Attributes\AttributeTests_Dynamic.cs (1)
552Assert.Equal(expectedTransformFlags[i], (bool)actualTransformFlag.Value);
Attributes\AttributeTests_Tuples.cs (1)
648return (string)constant.Value;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
559Assert.Equal(42, attributeData.ConstructorArguments.Single().Value);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\SemanticModelAPITests.cs (1)
4454Assert.Equal("DEBUG", attribute.ConstructorArguments[0].Value);
Symbols\Metadata\PE\LoadingAttributes.cs (1)
573Assert.Equal(expected.Value, actual.Value.Value.ToString());
Symbols\TypedConstantTests.cs (4)
48Assert.Equal(common.Value, lang.Value); 52Assert.Equal(common.Value, common2.Value);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Extensions.cs (3)
429return expected.Equals(arg.Value); 464return expected == null ? arg.Value == null : expected.Equals(arg.Value);
TestAttributesVisitor.cs (1)
197builder.Append(value.Value);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
311result.Append(constant.Value); 317var value = constant.Value;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (2)
32return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference: true); 35return typedConstant.Value is ITypeSymbol typeSymbol
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
4975var type = (ITypeSymbol)attribute.ConstructorArguments[0].Values[2].Value;
Microsoft.CodeAnalysis.Features (5)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
321if (attribute is { ConstructorArguments: [{ Type.SpecialType: SpecialType.System_String, Value: string stringValue }] })
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
489if (argument.Kind != TypedConstantKind.Primitive || argument.Value is not string argString)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
833attribute.ConstructorArguments is [_, { Kind: TypedConstantKind.Primitive, Value: string checkId }, ..]) 845Value: string categoryArg
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
711attribute.ConstructorArguments is [{ Kind: TypedConstantKind.Primitive, Type.SpecialType: SpecialType.System_String, Value: string value }])
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypedConstant.vb (1)
38Return "GetType(" & constant.Value.ToString() & ")"
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (3)
21Return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference:=True) 31If Not TypeOf typedConstant.Value Is ITypeSymbol Then 35Return SyntaxFactory.GetTypeExpression(DirectCast(typedConstant.Value, ITypeSymbol).GenerateTypeSyntax())
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_Tuples.vb (1)
444Return DirectCast(constant.Value, String)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\TypedConstantTests.vb (4)
39Assert.Equal(common.Value, lang.Value) 43Assert.Equal(common.Value, common2.Value)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
Extensions.vb (4)
184Return expected.Equals(arg.Value) 186Dim typeSym = TryCast(arg.Value, TypeSymbol) 216Return If(expected Is Nothing, arg.Value Is Nothing, expected.Equals(CType(arg.Value, T)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (3)
21Return GenerateExpression(generator, typedConstant.Type, typedConstant.Value, canUseFieldReference:=True) 31If Not TypeOf typedConstant.Value Is ITypeSymbol Then 35Return SyntaxFactory.GetTypeExpression(DirectCast(typedConstant.Value, ITypeSymbol).GenerateTypeSyntax())
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
291typeNameConstant.Value is not string value)
Shared\Extensions\ISymbolExtensions.cs (2)
136attribute.ConstructorArguments is [{ Value: int value }]) 193var argumentValue = attribute.ConstructorArguments.First().Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (2)
48ConstructorArguments: [{ Value: int version }, { Value: string attributeData }]
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 (7)
Parser.cs (7)
368var transValidatorType = attribute.ConstructorArguments[0].Value as INamedTypeSymbol; 431var enumerationValidatorType = attribute.ConstructorArguments[0].Value as INamedTypeSymbol; 516validationAttr.ConstructorArguments.Add(GetArgumentExpression(argument.Type!, argument.Value)); 529validationAttr.Properties.Add(namedArgument.Key, GetArgumentExpression(namedArgument.Value.Type!, namedArgument.Value.Value)); 625trackedTypeList!.Add((modelType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat), (string)attribute.ConstructorArguments[0].Value!)); 656argumentValue = attribute.ConstructorArguments[i].Value; 788sb.Append(GetArgumentExpression(value[i].Type!, value[i].Value));
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
268notes = namedArg.Value.Value?.ToString();
Microsoft.Gen.Logging (9)
Parsing\AttributeProcessors.cs (9)
45var v = a.Value; 53var v = a.Value; 61message = a.Value as string ?? string.Empty; 67var v = a.Value.Value; 136var v = a.Value.Value; 174var v = a.Value.Value; 187providerType = attr.ConstructorArguments[0].Value as ITypeSymbol; 188providerMethodName = attr.ConstructorArguments[1].Value as string; 194=> attr.ConstructorArguments[0].Value as string ?? string.Empty;
Microsoft.Gen.Metrics (7)
Parser.cs (7)
263var ctorArg0 = attributeData.ConstructorArguments[0].Value as string; 290metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 312var value = item.Value?.ToString(); 613if (namedArgument is { Key: "Name", Value.Value: { } }) 615strongTypeAttributeParameters.MetricNameFromAttribute = namedArgument.Value.Value.ToString(); 619constructorArg.Value is not INamedTypeSymbol strongTypeSymbol) 662strongTypeAttributeParameters.StrongTypeObjectName = constructorArg.Value.ToString();
Microsoft.Gen.MetricsReports (7)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (7)
263var ctorArg0 = attributeData.ConstructorArguments[0].Value as string; 290metricNameFromAttribute = (arg.Value.Value ?? string.Empty).ToString().Replace("\\\\", "\\"); 312var value = item.Value?.ToString(); 613if (namedArgument is { Key: "Name", Value.Value: { } }) 615strongTypeAttributeParameters.MetricNameFromAttribute = namedArgument.Value.Value.ToString(); 619constructorArg.Value is not INamedTypeSymbol strongTypeSymbol) 662strongTypeAttributeParameters.StrongTypeObjectName = constructorArg.Value.ToString();
Microsoft.Interop.ComInterfaceGenerator (16)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
53|| interfaceTypeAttributeData is not { ConstructorArguments: [{ Value: (int)ComInterfaceType.InterfaceIsIUnknown }] })
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (2)
63interfaceType = (ComInterfaceType)ctorArg0.Value; 67interfaceType = (ComInterfaceType)(short)ctorArg0.Value;
ComInterfaceInfo.cs (1)
342&& guidAttr.ConstructorArguments[0].Value is string guidStr
GeneratedComInterfaceAttributeData.cs (1)
70Options = (ComInterfaceOptions)options.Value
VirtualMethodPointerStubGenerator.cs (1)
305ITypeSymbol callConvSymbol = (ITypeSymbol)callConv.Value!;
VtableIndexStubGenerator.cs (10)
140if (attrData.ConstructorArguments.Length == 0 || attrData.ConstructorArguments[0].Value is not int) 153if (directionValue.Value is not int) 158direction = (MarshalDirection)directionValue.Value!; 162if (implicitThisValue.Value is not bool) 166implicitThis = (bool)implicitThisValue.Value!; 172if (exceptionMarshallingValue.Value is not int) 177exceptionMarshalling = (ExceptionMarshalling)exceptionMarshallingValue.Value!; 181if (exceptionMarshallingCustomTypeValue.Value is not INamedTypeSymbol) 185exceptionMarshallingCustomType = (INamedTypeSymbol)exceptionMarshallingCustomTypeValue.Value; 188return new VirtualMethodIndexCompilationData((int)attrData.ConstructorArguments[0].Value).WithValuesFromNamedArguments(namedArguments) with
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSImportGenerator.cs (3)
140return new JSImportData(attrData.ConstructorArguments[0].Value!.ToString(), null); 144return new JSImportData(attrData.ConstructorArguments[0].Value!.ToString(), attrData.ConstructorArguments[1].Value!.ToString());
Microsoft.Interop.LibraryImportGenerator (10)
Analyzers\ConvertToLibraryImportAnalyzer.cs (2)
189return bestFitMappingContainingType.ConstructorArguments[0].Value is true; 195return bestFitMappingContainingAssembly.ConstructorArguments[0].Value is true;
Analyzers\CustomMarshallerAttributeFixer.cs (1)
184&& attr.ApplicationSyntaxReference.Span.Contains(locationInAttribute.SourceSpan)).ConstructorArguments[0].Value!;
Analyzers\ShapeBreakingDiagnosticSuppressor.cs (2)
64&& attr.ConstructorArguments[2].Value is INamedTypeSymbol marshallerTypeInAttribute 69return (containingType, (INamedTypeSymbol)attrData.ConstructorArguments[0].Value);
LibraryImportGenerator.cs (5)
133TypeOfExpression(((ITypeSymbol)callConv.Value!).AsTypeSyntax())); 154Literal((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!)))))); 205if (entryPointValue.Value is not string) 209entryPoint = (string)entryPointValue.Value!; 212return new LibraryImportCompilationData(attrData.ConstructorArguments[0].Value!.ToString())
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (4)
100Literal((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!)))))); 147if (entryPointValue.Value is not string) 151entryPoint = (string)entryPointValue.Value!; 154return new LibraryImportCompilationData(attrData.ConstructorArguments[0].Value!.ToString())
Microsoft.Interop.SourceGeneration (21)
InteropAttributeData.cs (6)
65if (setLastErrorValue.Value is not bool) 69setLastError = (bool)setLastErrorValue.Value!; 75if (stringMarshallingValue.Value is not int) 80stringMarshalling = (StringMarshalling)stringMarshallingValue.Value!; 85if (stringMarshallingCustomTypeValue.Value is not INamedTypeSymbol) 89stringMarshallingCustomType = (INamedTypeSymbol)stringMarshallingCustomTypeValue.Value;
ManualTypeMarshallingHelper.cs (3)
182ITypeSymbol? managedTypeOnAttr = attr.ConstructorArguments[0].Value as ITypeSymbol; 204var marshalMode = (MarshalMode)attr.ConstructorArguments[1].Value!; 206ITypeSymbol? marshallerTypeOnAttr = attr.ConstructorArguments[2].Value as ITypeSymbol;
MarshalAsParser.cs (5)
139arraySizeInfo = arraySizeInfo with { ConstSize = (int)sizeConstArg.Value! }; 143if (!elementInfoProvider.TryGetInfoForParamIndex(attributeData, (short)sizeParamIndexArg.Value!, marshallingInfoCallback, out TypePositionInfo paramIndexInfo)) 145_diagnostics.ReportConfigurationNotSupported(attributeData, nameof(MarshalAsAttribute.SizeParamIndex), sizeParamIndexArg.Value.ToString()); 154object unmanagedTypeObj = attributeData.ConstructorArguments[0].Value!; 186elementUnmanagedType = (UnmanagedType)namedArg.Value.Value!;
MarshalUsingAttributeParser.cs (5)
46if (attributeData.ConstructorArguments[0].Value is not INamedTypeSymbol namedType) 68int elementIndirectionDepth = namedArgs.TryGetValue(ManualTypeMarshallingHelper.MarshalUsingProperties.ElementIndirectionDepth, out TypedConstant value) ? (int)value.Value! : 0; 80constSize = (int)arg.Value.Value!; 84if (arg.Value.Value is null) 89elementName = (string)arg.Value.Value!;
NativeMarshallingAttributeParser.cs (1)
31if (attributeData.ConstructorArguments[0].Value is not INamedTypeSymbol entryPointType)
TypeSymbolExtensions.cs (1)
141return attr.ConstructorArguments.Length == 1 && (LayoutKind)(int)attr.ConstructorArguments[0].Value! == LayoutKind.Auto;
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
153var shortName = shortPair.Value.Value as string;
Mvc.Analyzers.Test (15)
CodeAnalysisExtensionsTest.cs (15)
63attributeData => Assert.Equal(201, attributeData.ConstructorArguments[0].Value)); 100attributeData => Assert.Equal(400, attributeData.ConstructorArguments[0].Value)); 137attributeData => Assert.Equal(400, attributeData.ConstructorArguments[0].Value)); 174attributeData => Assert.Equal(400, attributeData.ConstructorArguments[0].Value), 175attributeData => Assert.Equal(200, attributeData.ConstructorArguments[0].Value), 176attributeData => Assert.Equal(404, attributeData.ConstructorArguments[0].Value)); 219attributeData => Assert.Equal(400, attributeData.ConstructorArguments[0].Value)); 262attributeData => Assert.Equal(401, attributeData.ConstructorArguments[0].Value)); 318Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object)); 323Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String)); 361Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 366Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object)); 371Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String)); 409Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 447Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32));
System.Private.CoreLib.Generators (3)
EventSourceGenerator.Parser.cs (1)
53string value = arg.Value.Value?.ToString();
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (2)
388if (attributeData.ConstructorArguments[0].Value is INamedTypeSymbol attributeTypeSymbol) 521if (attributeData.ConstructorArguments[0].Value is INamedTypeSymbol attributeTypeSymbol)
System.Text.Json.SourceGeneration (41)
JsonSourceGenerator.Parser.cs (41)
294defaults = (JsonSerializerDefaults)attributeData.ConstructorArguments[0].Value!; 302allowOutOfOrderMetadataProperties = (bool)namedArg.Value.Value!; 306allowTrailingCommas = (bool)namedArg.Value.Value!; 313var converterType = (ITypeSymbol?)element.Value; 324defaultBufferSize = (int)namedArg.Value.Value!; 328defaultIgnoreCondition = (JsonIgnoreCondition)namedArg.Value.Value!; 332dictionaryKeyPolicy = (JsonKnownNamingPolicy)namedArg.Value.Value!; 336respectNullableAnnotations = (bool)namedArg.Value.Value!; 340respectRequiredConstructorParameters = (bool)namedArg.Value.Value!; 344ignoreReadOnlyFields = (bool)namedArg.Value.Value!; 348ignoreReadOnlyProperties = (bool)namedArg.Value.Value!; 352includeFields = (bool)namedArg.Value.Value!; 356maxDepth = (int)namedArg.Value.Value!; 360newLine = (string)namedArg.Value.Value!; 364numberHandling = (JsonNumberHandling)namedArg.Value.Value!; 368preferredObjectCreationHandling = (JsonObjectCreationHandling)namedArg.Value.Value!; 372propertyNameCaseInsensitive = (bool)namedArg.Value.Value!; 376propertyNamingPolicy = (JsonKnownNamingPolicy)namedArg.Value.Value!; 380readCommentHandling = (JsonCommentHandling)namedArg.Value.Value!; 384referenceHandler = (JsonKnownReferenceHandler)namedArg.Value.Value!; 388unknownTypeHandling = (JsonUnknownTypeHandling)namedArg.Value.Value!; 392unmappedMemberHandling = (JsonUnmappedMemberHandling)namedArg.Value.Value!; 396useStringEnumConverter = (bool)namedArg.Value.Value!; 400writeIndented = (bool)namedArg.Value.Value!; 404indentCharacter = (char)namedArg.Value.Value!; 408indentSize = (int)namedArg.Value.Value!; 412generationMode = (JsonSourceGenerationMode)namedArg.Value.Value!; 455var typeSymbol = (ITypeSymbol?)attributeData.ConstructorArguments[0].Value; 469typeInfoPropertyName = (string)namedArg.Value.Value!; 472generationMode = (JsonSourceGenerationMode)namedArg.Value.Value!; 705numberHandling = (JsonNumberHandling)attributeData.ConstructorArguments[0].Value!; 710unmappedMemberHandling = (JsonUnmappedMemberHandling)attributeData.ConstructorArguments[0].Value!; 715objectCreationHandling = (JsonObjectCreationHandling)attributeData.ConstructorArguments[0].Value!; 727var derivedType = (ITypeSymbol)attributeData.ConstructorArguments[0].Value!; 1282ignoreCondition = (JsonIgnoreCondition)namedArgs[0].Value.Value!; 1294numberHandling = (JsonNumberHandling)ctorArgs[0].Value!; 1300objectCreationHandling = (JsonObjectCreationHandling)ctorArgs[0].Value!; 1306jsonPropertyName = (string)ctorArgs[0].Value!; 1313order = (int)ctorArgs[0].Value!; 1572Debug.Assert(attributeData.ConstructorArguments.Length == 1 && attributeData.ConstructorArguments[0].Value is null or ITypeSymbol); 1573var converterType = (ITypeSymbol?)attributeData.ConstructorArguments[0].Value;
System.Text.RegularExpressions.Generator (6)
RegexGenerator.Parser.cs (6)
80string? pattern = items[0].Value as string; 86options = items[1].Value as int?; 89matchTimeout = items[2].Value as int?; 90cultureName = items[3].Value as string; 98matchTimeout = items[2].Value as int?; 102cultureName = items[2].Value as string;