1 instantiation of ContextGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
153
ContextGenerationSpec contextGenSpec =
new
()
21 references to ContextGenerationSpec
System.Text.Json.SourceGeneration (21)
JsonSourceGenerator.Emitter.cs (15)
100
public void Emit(
ContextGenerationSpec
contextGenerationSpec)
136
private static SourceWriter CreateSourceWriterWithContextHeader(
ContextGenerationSpec
contextSpec, bool isPrimaryContextSourceFile = false, string? interfaceImplementation = null)
194
private SourceText? GenerateTypeInfo(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
229
private static SourceText GenerateForTypeWithBuiltInConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
246
private static SourceText GenerateForTypeWithCustomConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
267
private static SourceText GenerateForNullable(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
288
private static SourceText GenerateForUnsupportedType(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
304
private static SourceText GenerateForEnum(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
320
private SourceText GenerateForCollection(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
494
private SourceText GenerateForObject(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
775
private void GenerateFastPathFuncForObject(SourceWriter writer,
ContextGenerationSpec
contextSpec, string serializeMethodName, TypeGenerationSpec typeGenSpec)
1058
private static SerializedValueCheckType GetCheckType(
ContextGenerationSpec
contextSpec, PropertyGenerationSpec propertySpec)
1111
private static SourceText GetRootJsonContextImplementation(
ContextGenerationSpec
contextSpec, bool emitGetConverterForNullablePropertyMethod)
1379
private static SourceText GetGetTypeInfoImplementation(
ContextGenerationSpec
contextSpec)
1421
private SourceText GetPropertyNameInitialization(
ContextGenerationSpec
contextSpec)
JsonSourceGenerator.Parser.cs (2)
78
public
ContextGenerationSpec
? ParseContextGenerationSpec(ClassDeclarationSyntax contextClassDeclaration, SemanticModel semanticModel, CancellationToken cancellationToken)
153
ContextGenerationSpec
contextGenSpec = new()
JsonSourceGenerator.Roslyn3.11.cs (4)
56
List<
ContextGenerationSpec
>? contextGenerationSpecs = null;
59
ContextGenerationSpec
? contextGenerationSpec = parser.ParseContextGenerationSpec(contextClassDeclaration, semanticModel, executionContext.CancellationToken);
82
foreach (
ContextGenerationSpec
contextGenerationSpec in contextGenerationSpecs)
146
public Action<ImmutableArray<
ContextGenerationSpec
>>? OnSourceEmitting { get; init; }