1 write to Compilation
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
18=> Compilation = compilation;
13 references to Compilation
System.Text.Json.SourceGeneration (13)
Helpers\KnownTypeSymbols.cs (8)
124public INamedTypeSymbol ObjectType => _ObjectType ??= Compilation.GetSpecialType(SpecialType.System_Object); 127public INamedTypeSymbol StringType => _StringType ??= Compilation.GetSpecialType(SpecialType.System_String); 153: (_ByteArrayType = new(Compilation.CreateArrayTypeSymbol(Compilation.GetSpecialType(SpecialType.System_Byte), rank: 1))).Value; 159: (_MemoryByteType = new(MemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 165: (_ReadOnlyMemoryByteType = new(ReadOnlyMemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 244public INamedTypeSymbol? DelegateType => _DelegateType ??= Compilation.GetSpecialType(SpecialType.System_Delegate); 355INamedTypeSymbol? type = Compilation.GetBestTypeByMetadataName(fullyQualifiedName);
JsonSourceGenerator.Parser.cs (5)
57if (location is null || !_knownSymbols.Compilation.ContainsLocation(location)) 118LanguageVersion? langVersion = _knownSymbols.Compilation.GetLanguageVersion(); 210type = _knownSymbols.Compilation.EraseCompileTimeMetadata(type); 483if (location is null || !_knownSymbols.Compilation.ContainsLocation(location)) 491Type = _knownSymbols.Compilation.EraseCompileTimeMetadata(typeSymbol),