16 references to TypeProperty
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
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 (3)
52case ObjectContentConverter.TypeProperty: 54throw new JsonException($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ContainerElement)}"); 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 (1)
50var type = data.GetProperty(TypeProperty).GetString() ?? throw new JsonException();