1 instantiation of ContextGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
171
ContextGenerationSpec contextGenSpec =
new
()
23 references to ContextGenerationSpec
System.Text.Json.SourceGeneration (23)
JsonSourceGenerator.Emitter.cs (15)
111
public void Emit(
ContextGenerationSpec
contextGenerationSpec)
148
private static SourceWriter CreateSourceWriterWithContextHeader(
ContextGenerationSpec
contextSpec, bool isPrimaryContextSourceFile = false, string? interfaceImplementation = null)
206
private SourceText? GenerateTypeInfo(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
241
private static SourceText GenerateForTypeWithBuiltInConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
258
private static SourceText GenerateForTypeWithCustomConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
279
private static SourceText GenerateForNullable(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
300
private static SourceText GenerateForUnsupportedType(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
316
private static SourceText GenerateForEnum(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
332
private SourceText GenerateForCollection(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
506
private SourceText GenerateForObject(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
1314
private void GenerateFastPathFuncForObject(SourceWriter writer,
ContextGenerationSpec
contextSpec, string serializeMethodName, TypeGenerationSpec typeGenSpec)
1660
private static SerializedValueCheckType GetCheckType(
ContextGenerationSpec
contextSpec, PropertyGenerationSpec propertySpec)
1714
private static SourceText GetRootJsonContextImplementation(
ContextGenerationSpec
contextSpec, bool emitGetConverterForNullablePropertyMethod, bool emitValueTypeSetterDelegate)
1992
private static SourceText GetGetTypeInfoImplementation(
ContextGenerationSpec
contextSpec)
2034
private SourceText GetPropertyNameInitialization(
ContextGenerationSpec
contextSpec)
JsonSourceGenerator.Parser.cs (2)
87
public
ContextGenerationSpec
? ParseContextGenerationSpec(ClassDeclarationSyntax contextClassDeclaration, SemanticModel semanticModel, CancellationToken cancellationToken)
171
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)