1 instantiation of ContextGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
174
ContextGenerationSpec contextGenSpec =
new
()
24 references to ContextGenerationSpec
System.Text.Json.SourceGeneration (24)
JsonSourceGenerator.Emitter.cs (16)
92
public void Emit(
ContextGenerationSpec
contextGenerationSpec)
129
private static SourceWriter CreateSourceWriterWithContextHeader(
ContextGenerationSpec
contextSpec, bool isPrimaryContextSourceFile = false, string? interfaceImplementation = null)
187
private SourceText? GenerateTypeInfo(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
225
private static SourceText GenerateForTypeWithBuiltInConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
242
private static SourceText GenerateForTypeWithCustomConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
263
private static SourceText GenerateForNullable(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
284
private static SourceText GenerateForUnsupportedType(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
300
private static SourceText GenerateForEnum(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
316
private SourceText GenerateForCollection(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
496
private SourceText GenerateForObject(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
613
private static SourceText GenerateForUnion(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
1497
private void GenerateFastPathFuncForObject(SourceWriter writer,
ContextGenerationSpec
contextSpec, string serializeMethodName, TypeGenerationSpec typeGenSpec)
1841
private static SerializedValueCheckType GetCheckType(
ContextGenerationSpec
contextSpec, PropertyGenerationSpec propertySpec)
1895
private static SourceText GetRootJsonContextImplementation(
ContextGenerationSpec
contextSpec, bool emitGetConverterForNullablePropertyMethod, bool emitValueTypeSetterDelegate)
2184
private static SourceText GetGetTypeInfoImplementation(
ContextGenerationSpec
contextSpec)
2226
private SourceText GetPropertyNameInitialization(
ContextGenerationSpec
contextSpec)
JsonSourceGenerator.Parser.cs (2)
90
public
ContextGenerationSpec
? ParseContextGenerationSpec(ClassDeclarationSyntax contextClassDeclaration, SemanticModel semanticModel, CancellationToken cancellationToken)
174
ContextGenerationSpec
contextGenSpec = new()
JsonSourceGenerator.Roslyn4.0.cs (5)
34
IncrementalValuesProvider<(
ContextGenerationSpec
?, ImmutableArray<Diagnostic>)> contextGenerationSpecs = context.SyntaxProvider
55
ContextGenerationSpec
? contextGenerationSpec = parser.ParseContextGenerationSpec(tuple.Left.ContextClass, tuple.Left.SemanticModel, cancellationToken);
76
IncrementalValuesProvider<
ContextGenerationSpec
?> sourceGenerationSpecs =
93
private void EmitSource(SourceProductionContext sourceProductionContext,
ContextGenerationSpec
? contextGenerationSpec)
131
public Action<ImmutableArray<
ContextGenerationSpec
>>? OnSourceEmitting { get; init; }
Model\PropertyGenerationSpec.cs (1)
192
public bool ShouldIncludePropertyForFastPath(
ContextGenerationSpec
contextSpec)