2 instantiations of ImageId
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Extensions\Extensions.cs (1)
315return new(guid, id);
Protocol\Internal\Converters\ImageIdConverter.cs (1)
32return new ImageId(guid.Value, id.Value);
34 references to ImageId
Microsoft.CodeAnalysis.LanguageServer.Protocol (34)
Extensions\Extensions.cs (1)
311public static ImageId ToLSPImageId(this Glyph glyph)
Protocol\Internal\Converters\ImageElementConverter.cs (2)
21ImageId? imageId = null; 42imageId = ImageIdConverter.Instance.Read(ref reader, typeof(ImageId), options);
Protocol\Internal\Converters\ImageIdConverter.cs (10)
12internal sealed class ImageIdConverter : JsonConverter<ImageId> 16public override ImageId Read(ref Utf8JsonReader reader, Type objectType, JsonSerializerOptions options) 42case nameof(ImageId.Guid): 45case nameof(ImageId.Id): 51if (!typePropertyValue.SequenceEqual(nameof(ImageId).AsSpan())) 52throw new JsonException($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ImageId)}"); 65public override void Write(Utf8JsonWriter writer, ImageId value, JsonSerializerOptions options) 68writer.WriteString(nameof(ImageId.Guid), value.Guid.ToString()); 69writer.WriteNumber(nameof(ImageId.Id), value.Id); 70writer.WriteString(ObjectContentConverter.TypeProperty, nameof(ImageId));
Protocol\Internal\Converters\ObjectContentConverter.cs (5)
18/// <item><description><see cref="ImageId"/></description></item>, 54case nameof(ImageId): 55return ImageIdConverter.Instance.Read(ref clonedReader, typeof(ImageId), options); 93case ImageId: 94ImageIdConverter.Instance.Write(writer, (ImageId)value, options);
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
17private static readonly ConcurrentDictionary<ImageId, string> IconRawJson = new ConcurrentDictionary<ImageId, string>();
Protocol\Internal\Text\ImageElement.cs (3)
16public ImageId ImageId { get; } 19public ImageElement(ImageId imageId) : this(imageId, null) 24public ImageElement(ImageId imageId, string? automationName)
Protocol\Internal\Text\ImageId.cs (11)
21internal struct ImageId : IEquatable<ImageId> 66bool IEquatable<ImageId>.Equals(ImageId other) 80if (other is ImageId) 82var other2 = (ImageId)other; 83return ((IEquatable<ImageId>)this).Equals(other2); 89public static bool operator ==(ImageId left, ImageId right) 94public static bool operator !=(ImageId left, ImageId right)