1 instantiation of ContextGenerationSpec
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
180
ContextGenerationSpec contextGenSpec =
new
()
32 references to ContextGenerationSpec
System.Text.Json.SourceGeneration (32)
JsonSourceGenerator.Emitter.cs (24)
100
public void Emit(
ContextGenerationSpec
contextGenerationSpec)
138
private static SourceWriter CreateSourceWriterWithContextHeader(
ContextGenerationSpec
contextSpec, bool isPrimaryContextSourceFile = false, string? interfaceImplementation = null, IReadOnlyCollection<string>? experimentalDiagnosticIds = null)
204
private static List<string>? GetContextExperimentalDiagnosticIds(
ContextGenerationSpec
contextSpec)
243
private SourceText? GenerateTypeInfo(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
281
private static SourceText GenerateForTypeWithBuiltInConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
298
private static SourceText GenerateForTypeWithCustomConverter(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
319
private static SourceText GenerateForNullable(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
340
private static SourceText GenerateForUnsupportedType(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
356
private static SourceText GenerateForEnum(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
372
private SourceText GenerateForCollection(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
554
private SourceText GenerateForObject(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
673
private static SourceText GenerateForUnion(
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeMetadata)
829
private void GeneratePropMetadataInitFunc(SourceWriter writer,
ContextGenerationSpec
contextSpec, string propInitMethodName, TypeGenerationSpec typeGenerationSpec)
972
private static string GetUnboxExpression(
ContextGenerationSpec
contextSpec, string declaringTypeFQN)
979
ContextGenerationSpec
contextSpec,
1029
ContextGenerationSpec
contextSpec,
1067
ContextGenerationSpec
contextSpec,
1106
private static bool GeneratePropertyAccessors(SourceWriter writer,
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeGenerationSpec)
1395
private static void GenerateConstructorAccessor(SourceWriter writer,
ContextGenerationSpec
contextSpec, TypeGenerationSpec typeSpec)
1608
private void GenerateFastPathFuncForObject(SourceWriter writer,
ContextGenerationSpec
contextSpec, string serializeMethodName, TypeGenerationSpec typeGenSpec)
1963
private static SerializedValueCheckType GetCheckType(
ContextGenerationSpec
contextSpec, PropertyGenerationSpec propertySpec)
2038
private static SourceText GetRootJsonContextImplementation(
ContextGenerationSpec
contextSpec, bool emitGetConverterForNullablePropertyMethod, bool emitValueTypeSetterDelegate, bool emitByteArrayValueHelper)
2348
private static SourceText GetGetTypeInfoImplementation(
ContextGenerationSpec
contextSpec)
2390
private SourceText GetPropertyNameInitialization(
ContextGenerationSpec
contextSpec)
JsonSourceGenerator.Parser.cs (2)
93
public
ContextGenerationSpec
? ParseContextGenerationSpec(ClassDeclarationSyntax contextClassDeclaration, SemanticModel semanticModel, CancellationToken cancellationToken)
180
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)
201
public bool ShouldIncludePropertyForFastPath(
ContextGenerationSpec
contextSpec)