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