1 write to Compilation
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
18=> Compilation = compilation;
15 references to Compilation
System.Text.Json.SourceGeneration (15)
Helpers\KnownTypeSymbols.cs (8)
127public INamedTypeSymbol ObjectType => _ObjectType ??= Compilation.GetSpecialType(SpecialType.System_Object); 130public INamedTypeSymbol StringType => _StringType ??= Compilation.GetSpecialType(SpecialType.System_String); 156: (_ByteArrayType = new(Compilation.CreateArrayTypeSymbol(Compilation.GetSpecialType(SpecialType.System_Byte), rank: 1))).Value; 162: (_MemoryByteType = new(MemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 168: (_ReadOnlyMemoryByteType = new(ReadOnlyMemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 259public INamedTypeSymbol? DelegateType => _DelegateType ??= Compilation.GetSpecialType(SpecialType.System_Delegate); 370INamedTypeSymbol? type = Compilation.GetBestTypeByMetadataName(fullyQualifiedName);
JsonSourceGenerator.Parser.cs (7)
57if (location is null || !_knownSymbols.Compilation.ContainsLocation(location)) 127LanguageVersion? langVersion = _knownSymbols.Compilation.GetLanguageVersion(); 219type = _knownSymbols.Compilation.EraseCompileTimeMetadata(type); 546if (location is null || !_knownSymbols.Compilation.ContainsLocation(location)) 554Type = _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol), 1196Conversion conversion = _knownSymbols.Compilation.ClassifyConversion(dictionaryType, type); 1880=> _knownSymbols.Compilation.IsSymbolAccessibleWithin(symbol, within);