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