1 write to Compilation
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
18
=>
Compilation
= compilation;
17 references to Compilation
System.Text.Json.SourceGeneration (17)
Helpers\KnownTypeSymbols.cs (8)
127
public INamedTypeSymbol ObjectType => _ObjectType ??=
Compilation
.GetSpecialType(SpecialType.System_Object);
130
public 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;
283
public INamedTypeSymbol? DelegateType => _DelegateType ??=
Compilation
.GetSpecialType(SpecialType.System_Delegate);
394
INamedTypeSymbol? type =
Compilation
.GetBestTypeByMetadataName(fullyQualifiedName);
JsonSourceGenerator.Parser.cs (9)
69
if (location is null || !_knownSymbols.
Compilation
.ContainsLocation(location))
139
LanguageVersion? langVersion = _knownSymbols.
Compilation
.GetLanguageVersion();
231
type = _knownSymbols.
Compilation
.EraseCompileTimeMetadata(type);
574
if (location is null || !_knownSymbols.
Compilation
.ContainsLocation(location))
582
Type = _knownSymbols.
Compilation
.EraseCompileTimeMetadata(typeSymbol),
1184
if (!_knownSymbols.
Compilation
.TryValidateGenericConstraints(requiredParams, successfulSubstitution, out ITypeParameterSymbol? failedParam, out ITypeSymbol? failedArg))
1444
ITypeSymbol root = _knownSymbols.
Compilation
.GetSpecialType(SpecialType.System_Void);
2108
Conversion conversion = _knownSymbols.
Compilation
.ClassifyConversion(dictionaryType, type);
3006
=> _knownSymbols.
Compilation
.IsSymbolAccessibleWithin(symbol, within);