2 writes to Type
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
240
Type
= type,
582
Type
= _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol),
16 references to Type
System.Text.Json.SourceGeneration (16)
JsonSourceGenerator.Parser.cs (16)
165
if (!_generatedTypes.ContainsKey(typeToGenerate.
Type
))
168
_generatedTypes.Add(typeToGenerate.
Type
, spec);
592
Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.
Type
, within: contextType), "should not generate metadata for inaccessible types.");
594
ITypeSymbol type = typeToGenerate.
Type
;
873
bool isUnionType = IsUnionType(typeToGenerate.
Type
);
874
INamedTypeSymbol? namedUnionType = typeToGenerate.
Type
as INamedTypeSymbol;
876
foreach (AttributeData attributeData in typeToGenerate.
Type
.GetAttributes())
913
customConverterType = GetConverterTypeFromJsonConverterAttribute(contextType, typeToGenerate.
Type
, attributeData);
933
ReportDiagnostic(DiagnosticDescriptors.JsonIgnoreConditionAlwaysInvalidOnType, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
946
unboundDerived, typeToGenerate.
Type
,
949
ReportDiagnostic(DiagnosticDescriptors.OpenGenericDerivedTypeCouldNotBeResolved, attributeData.GetLocation(), derivedType.ToDisplayString(), typeToGenerate.
Type
.ToDisplayString(), failureReason);
967
ReportDiagnostic(DiagnosticDescriptors.PolymorphismNotSupported, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
993
polymorphicClassifierFactoryType = GetTypeClassifierFactoryTypeFromAttribute(contextType, classifierType, typeToGenerate.
Type
, attributeData);
1320
if (typeToGenerate.
Type
is not INamedTypeSymbol namedType)
1903
foreach (INamedTypeSymbol currentType in typeToGenerate.
Type
.GetSortedTypeHierarchy())
2500
ITypeSymbol type = typeToGenerate.
Type
;