3 instantiations of ContainerElement
Microsoft.CodeAnalysis.EditorFeatures (1)
Extensions\LSPExtensions.cs (1)
24=> new((Roslyn.Text.Adornments.ContainerElementStyle)element.Style, element.Elements.Select(ToLSPElement));
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\Extensions.cs (1)
328=> new((ContainerElementStyle)element.Style, element.Elements.Select(ToLSPElement));
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
30return new ContainerElement(style ?? throw new JsonException(), objects);
27 references to ContainerElement
Microsoft.CodeAnalysis.EditorFeatures (1)
Extensions\LSPExtensions.cs (1)
23public static Roslyn.Text.Adornments.ContainerElement ToLSPElement(this VisualStudio.Text.Adornments.ContainerElement element)
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
Extensions\Extensions.cs (1)
327public 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 sealed 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 or ContainerElement or ClassifiedTextElement or string)
Protocol\Internal\VSInternalReferenceItem.cs (4)
53/// Must be of type <see cref="string"/>, <see cref="ClassifiedTextElement"/>, <see cref="ContainerElement"/> and <see cref="ImageElement"/>. 72if (value is null or ImageElement or ContainerElement or ClassifiedTextElement or 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 or ContainerElement or ClassifiedTextElement or string)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Hover\HoverTests.cs (4)
615var containerElement = (ContainerElement)vsHover.RawContent; 623private static void GetClassifiedTextElements(ContainerElement container, ArrayBuilder<ClassifiedTextElement> classifiedTextElements) 631else if (element is ContainerElement containerElement)