|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms
{
internal partial class RunFileApiJsonSerializerContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
{
/// <inheritdoc/>
public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
{
Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
return typeInfo;
}
global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
{
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionInternal))
{
return Create_LinePositionInternal(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.LinePositionSpanInternal))
{
return Create_LinePositionSpanInternal(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiInput))
{
return Create_RunApiInput(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiInput.GetProject))
{
return Create_GetProject(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput))
{
return Create_RunApiOutput(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Error))
{
return Create_Error(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunApiOutput.Project))
{
return Create_Project(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic))
{
return Create_SimpleDiagnostic(options);
}
if (type == typeof(global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic.Position))
{
return Create_Position(options);
}
if (type == typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.SimpleDiagnostic>))
{
return Create_ImmutableArraySimpleDiagnostic(options);
}
if (type == typeof(int))
{
return Create_Int32(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
return null;
}
}
}
|