2 writes to Type
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
211
Type
= type,
637
Type
= _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol),
24 references to Type
System.Text.Json.SourceGeneration (24)
JsonSourceGenerator.Parser.cs (24)
171
if (!_generatedTypes.ContainsKey(typeToGenerate.
Type
))
174
_generatedTypes.Add(typeToGenerate.
Type
, spec);
647
Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.
Type
, within: contextType), "should not generate metadata for inaccessible types.");
649
ITypeSymbol type = typeToGenerate.
Type
;
976
bool isUnionType = IsUnionType(typeToGenerate.
Type
);
977
INamedTypeSymbol? namedUnionType = typeToGenerate.
Type
as INamedTypeSymbol;
979
foreach (AttributeData attributeData in typeToGenerate.
Type
.GetAttributes())
1016
customConverterType = GetConverterTypeFromJsonConverterAttribute(contextType, typeToGenerate.
Type
, attributeData, ref experimentalIds);
1036
ReportDiagnostic(DiagnosticDescriptors.JsonIgnoreConditionAlwaysInvalidOnType, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
1086
polymorphicClassifierFactoryType = GetTypeClassifierFactoryTypeFromAttribute(contextType, classifierType, typeToGenerate.
Type
, attributeData, ref experimentalIds);
1129
typeToGenerate.
Type
is INamedTypeSymbol namedBaseType &&
1143
typeToGenerate.
Type
.ToDisplayString());
1154
typeToGenerate.
Type
.ToDisplayString());
1222
unboundDerived, typeToGenerate.
Type
,
1229
ReportDiagnostic(DiagnosticDescriptors.OpenGenericDerivedTypeCouldNotBeResolved, derivedTypeDiagnosticLocation, derivedType.ToDisplayString(), typeToGenerate.
Type
.ToDisplayString(), failureReason);
1234
!typeToGenerate.
Type
.IsAssignableFrom(resolvedDerivedType))
1238
ReportDiagnostic(DiagnosticDescriptors.DerivedTypeIsNotSupported, derivedTypeDiagnosticLocation, resolvedDerivedType.ToDisplayString(), typeToGenerate.
Type
.ToDisplayString());
1247
!derivedType.IsAtLeastAsVisibleAs(typeToGenerate.
Type
))
1251
ReportDiagnostic(DiagnosticDescriptors.InferredDerivedTypeIsNotAccessible, derivedTypeDiagnosticLocation, derivedType.ToDisplayString(), typeToGenerate.
Type
.ToDisplayString());
1260
ReportDiagnostic(DiagnosticDescriptors.DerivedTypeDiscriminatorCollision, derivedTypeDiagnosticLocation, typeDiscriminator, typeToGenerate.
Type
.ToDisplayString());
1265
ReportDiagnostic(DiagnosticDescriptors.PolymorphismNotSupported, polymorphismDiagnosticLocation, typeToGenerate.
Type
.ToDisplayString());
1597
if (typeToGenerate.
Type
is not INamedTypeSymbol namedType)
2189
foreach (INamedTypeSymbol currentType in typeToGenerate.
Type
.GetSortedTypeHierarchy())
2798
ITypeSymbol type = typeToGenerate.
Type
;