16 references to TypeProperty
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (3)
43
case ObjectContentConverter.
TypeProperty
:
45
throw new JsonException($"Expected {ObjectContentConverter.
TypeProperty
} property value {nameof(ClassifiedTextElement)}");
68
writer.WritePropertyName(ObjectContentConverter.
TypeProperty
);
Protocol\Internal\Converters\ClassifiedTextRunConverter.cs (3)
20
if (data.TryGetProperty(ObjectContentConverter.
TypeProperty
, out var typeProperty) && typeProperty.GetString() != nameof(ClassifiedTextRun))
22
throw new JsonException($"Expected {ObjectContentConverter.
TypeProperty
} property value {nameof(ClassifiedTextRun)}");
56
writer.WriteString(ObjectContentConverter.
TypeProperty
, nameof(ClassifiedTextRun));
Protocol\Internal\Converters\ContainerElementConverter.cs (3)
52
case ObjectContentConverter.
TypeProperty
:
54
throw new JsonException($"Expected {ObjectContentConverter.
TypeProperty
} property value {nameof(ContainerElement)}");
78
writer.WritePropertyName(ObjectContentConverter.
TypeProperty
);
Protocol\Internal\Converters\ImageElementConverter.cs (3)
43
case ObjectContentConverter.
TypeProperty
:
45
throw new JsonException($"Expected {ObjectContentConverter.
TypeProperty
} property value {nameof(ImageElement)}");
64
writer.WriteString(ObjectContentConverter.
TypeProperty
, nameof(ImageElement));
Protocol\Internal\Converters\ImageIdConverter.cs (3)
21
if (root.TryGetProperty(ObjectContentConverter.
TypeProperty
, out var typeProperty) && typeProperty.GetString() != nameof(ImageId))
23
throw new JsonException($"Expected {ObjectContentConverter.
TypeProperty
} property value {nameof(ImageId)}");
41
writer.WriteString(ObjectContentConverter.
TypeProperty
, nameof(ImageId));
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
50
var type = data.GetProperty(
TypeProperty
).GetString() ?? throw new JsonException();