2 writes to Type
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
237
Type
= type,
563
Type
= _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol),
10 references to Type
System.Text.Json.SourceGeneration (10)
JsonSourceGenerator.Parser.cs (10)
162
if (!_generatedTypes.ContainsKey(typeToGenerate.
Type
))
165
_generatedTypes.Add(typeToGenerate.
Type
, spec);
573
Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.
Type
, within: contextType), "should not generate metadata for inaccessible types.");
575
ITypeSymbol type = typeToGenerate.
Type
;
784
foreach (AttributeData attributeData in typeToGenerate.
Type
.GetAttributes())
821
customConverterType = GetConverterTypeFromJsonConverterAttribute(contextType, typeToGenerate.
Type
, attributeData);
841
ReportDiagnostic(DiagnosticDescriptors.JsonIgnoreConditionAlwaysInvalidOnType, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
854
ReportDiagnostic(DiagnosticDescriptors.PolymorphismNotSupported, typeToGenerate.Location, typeToGenerate.
Type
.ToDisplayString());
1052
foreach (INamedTypeSymbol currentType in typeToGenerate.
Type
.GetSortedTypeHierarchy())
1649
ITypeSymbol type = typeToGenerate.
Type
;