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