2 instantiations of ImageId
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\Extensions.cs (1)
296
return
new
(guid, id);
Protocol\Internal\Converters\ImageIdConverter.cs (1)
28
return new
ImageId
(new Guid(guid), id);
34 references to ImageId
Microsoft.CodeAnalysis.LanguageServer.Protocol (34)
Extensions\Extensions.cs (1)
292
public static
ImageId
ToLSPImageId(this Glyph glyph)
Protocol\Internal\Converters\ImageElementConverter.cs (2)
20
ImageId
? imageId = null;
38
imageId = ImageIdConverter.Instance.Read(ref reader, typeof(
ImageId
), options);
Protocol\Internal\Converters\ImageIdConverter.cs (10)
11
internal class ImageIdConverter : JsonConverter<
ImageId
>
15
public override
ImageId
Read(ref Utf8JsonReader reader, Type objectType, JsonSerializerOptions options)
21
if (root.TryGetProperty(ObjectContentConverter.TypeProperty, out var typeProperty) && typeProperty.GetString() != nameof(
ImageId
))
23
throw new JsonException($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(
ImageId
)}");
26
var guid = root.GetProperty(nameof(
ImageId
.Guid)).GetString() ?? throw new JsonException();
27
var id = root.GetProperty(nameof(
ImageId
.Id)).GetInt32();
36
public override void Write(Utf8JsonWriter writer,
ImageId
value, JsonSerializerOptions options)
39
writer.WriteString(nameof(
ImageId
.Guid), value.Guid.ToString());
40
writer.WriteNumber(nameof(
ImageId
.Id), value.Id);
41
writer.WriteString(ObjectContentConverter.TypeProperty, nameof(
ImageId
));
Protocol\Internal\Converters\ObjectContentConverter.cs (5)
18
/// <item><description><see cref="
ImageId
"/></description></item>,
54
case nameof(
ImageId
):
55
return ImageIdConverter.Instance.Read(ref clonedReader, typeof(
ImageId
), options);
93
case
ImageId
:
94
ImageIdConverter.Instance.Write(writer, (
ImageId
)value, options);
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
17
private static readonly ConcurrentDictionary<
ImageId
, string> IconRawJson = new ConcurrentDictionary<
ImageId
, string>();
Protocol\Internal\Text\ImageElement.cs (3)
16
public
ImageId
ImageId { get; }
19
public ImageElement(
ImageId
imageId) : this(imageId, null)
24
public ImageElement(
ImageId
imageId, string? automationName)
Protocol\Internal\Text\ImageId.cs (11)
21
internal struct ImageId : IEquatable<
ImageId
>
66
bool IEquatable<
ImageId
>.Equals(
ImageId
other)
80
if (other is
ImageId
)
82
var
other2 = (
ImageId
)other;
83
return ((IEquatable<
ImageId
>)this).Equals(other2);
89
public static bool operator ==(
ImageId
left,
ImageId
right)
94
public static bool operator !=(
ImageId
left,
ImageId
right)