1 instantiation of ContainerElement
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
30
return new
ContainerElement
(style ?? throw new JsonException(), objects);
22 references to ContainerElement
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
Extensions\Extensions.cs (1)
308
public static
ContainerElement
ToLSPElement(this QuickInfoContainerElement element)
Protocol\Internal\Converters\ContainerElementConverter.cs (11)
13
/// System.Text.Json.JsonConverter for serializing and deserializing <see cref="
ContainerElement
"/>.
15
internal class ContainerElementConverter : JsonConverter<
ContainerElement
>
19
public override
ContainerElement
Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
39
case nameof(
ContainerElement
.Elements):
49
case nameof(
ContainerElement
.Style):
53
if (reader.GetString() != nameof(
ContainerElement
))
54
throw new JsonException($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(
ContainerElement
)}");
67
public override void Write(Utf8JsonWriter writer,
ContainerElement
value, JsonSerializerOptions options)
70
writer.WritePropertyName(nameof(
ContainerElement
.Elements));
77
writer.WriteNumber(nameof(
ContainerElement
.Style), (int)value.Style);
79
writer.WriteStringValue(nameof(
ContainerElement
));
Protocol\Internal\Converters\ObjectContentConverter.cs (4)
20
/// <item><description><see cref="
ContainerElement
"/></description></item>,
58
case nameof(
ContainerElement
):
99
case
ContainerElement
:
100
ContainerElementConverter.Instance.Write(writer, (
ContainerElement
)value, options);
Protocol\Internal\VSInternalLocation.cs (2)
19
/// Gets or sets the text value for a location reference. Must be of type <see cref="ImageElement"/> or <see cref="
ContainerElement
"/> or <see cref="ClassifiedTextElement"/> or <see cref="string"/>.
33
if (value is ImageElement || value is
ContainerElement
|| value is ClassifiedTextElement || value is string)
Protocol\Internal\VSInternalReferenceItem.cs (4)
53
/// Must be of type <see cref="string"/>, <see cref="ClassifiedTextElement"/>, <see cref="
ContainerElement
"/> and <see cref="ImageElement"/>.
72
(value is ImageElement || value is
ContainerElement
|| value is ClassifiedTextElement || value is string))
133
/// Must be of type <see cref="ImageElement"/> or <see cref="
ContainerElement
"/> or <see cref="ClassifiedTextElement"/> or <see cref="string"/>.
160
if (value is ImageElement || value is
ContainerElement
|| value is ClassifiedTextElement || value is string)