1 instantiation of ObjectContentConverter
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
36
public static readonly ObjectContentConverter Instance =
new
();
23 references to ObjectContentConverter
Microsoft.CodeAnalysis.LanguageServer.Protocol (23)
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (3)
43
case
ObjectContentConverter
.TypeProperty:
45
throw new JsonException($"Expected {
ObjectContentConverter
.TypeProperty} property value {nameof(ClassifiedTextElement)}");
68
writer.WritePropertyName(
ObjectContentConverter
.TypeProperty);
Protocol\Internal\Converters\ClassifiedTextRunConverter.cs (3)
20
if (data.TryGetProperty(
ObjectContentConverter
.TypeProperty, out var typeProperty) && typeProperty.GetString() != nameof(ClassifiedTextRun))
22
throw new JsonException($"Expected {
ObjectContentConverter
.TypeProperty} property value {nameof(ClassifiedTextRun)}");
56
writer.WriteString(
ObjectContentConverter
.TypeProperty, nameof(ClassifiedTextRun));
Protocol\Internal\Converters\ContainerElementConverter.cs (5)
45
objects.Add(
ObjectContentConverter
.Instance.Read(ref reader, typeof(object), options)!);
52
case
ObjectContentConverter
.TypeProperty:
54
throw new JsonException($"Expected {
ObjectContentConverter
.TypeProperty} property value {nameof(ContainerElement)}");
74
ObjectContentConverter
.Instance.Write(writer, run, options);
78
writer.WritePropertyName(
ObjectContentConverter
.TypeProperty);
Protocol\Internal\Converters\ImageElementConverter.cs (3)
43
case
ObjectContentConverter
.TypeProperty:
45
throw new JsonException($"Expected {
ObjectContentConverter
.TypeProperty} property value {nameof(ImageElement)}");
64
writer.WriteString(
ObjectContentConverter
.TypeProperty, nameof(ImageElement));
Protocol\Internal\Converters\ImageIdConverter.cs (3)
21
if (root.TryGetProperty(
ObjectContentConverter
.TypeProperty, out var typeProperty) && typeProperty.GetString() != nameof(ImageId))
23
throw new JsonException($"Expected {
ObjectContentConverter
.TypeProperty} property value {nameof(ImageId)}");
41
writer.WriteString(
ObjectContentConverter
.TypeProperty, nameof(ImageId));
Protocol\Internal\Converters\ObjectContentConverter.cs (2)
34
/// A reusable instance of the <see cref="
ObjectContentConverter
"/>.
36
public static readonly
ObjectContentConverter
Instance = new();
Protocol\Internal\VSInternalHover.cs (1)
20
[JsonConverter(typeof(
ObjectContentConverter
))]
Protocol\Internal\VSInternalLocation.cs (1)
22
[JsonConverter(typeof(
ObjectContentConverter
))]
Protocol\Internal\VSInternalReferenceItem.cs (2)
60
[JsonConverter(typeof(
ObjectContentConverter
))]
149
[JsonConverter(typeof(
ObjectContentConverter
))]