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