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