2 writes to Type
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
239
Type
= type,
581
Type
= _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol),
14 references to Type
System.Text.Json.SourceGeneration (14)
JsonSourceGenerator.Parser.cs (14)
164
if (!_generatedTypes.ContainsKey(typeToGenerate.
Type
))
167
_generatedTypes.Add(typeToGenerate.
Type
, spec);
591
Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.
Type
, within: contextType), "should not generate metadata for inaccessible types.");
593
ITypeSymbol type = typeToGenerate.
Type
;
856
bool isUnionType = IsUnionType(typeToGenerate.
Type
);
857
INamedTypeSymbol? namedUnionType = typeToGenerate.
Type
as INamedTypeSymbol;
859
foreach (AttributeData attributeData in typeToGenerate.
Type
.GetAttributes())
896
customConverterType = GetConverterTypeFromJsonConverterAttribute(contextType, typeToGenerate.
Type
, attributeData);
916
ReportDiagnostic(DiagnosticDescriptors.JsonIgnoreConditionAlwaysInvalidOnType, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
936
ReportDiagnostic(DiagnosticDescriptors.PolymorphismNotSupported, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
962
polymorphicClassifierFactoryType = GetTypeClassifierFactoryTypeFromAttribute(contextType, classifierType, typeToGenerate.
Type
, attributeData);
1084
if (typeToGenerate.
Type
is not INamedTypeSymbol namedType)
1616
foreach (INamedTypeSymbol currentType in typeToGenerate.
Type
.GetSortedTypeHierarchy())
2213
ITypeSymbol type = typeToGenerate.
Type
;