1 instantiation of TypeRef
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
TypeRef.cs (1)
94
return s_cache.GetOrAdd(key, new
TypeRef
(typeName, assemblyName, codeBase));
42 references to TypeRef
Microsoft.CommonLanguageServerProtocol.Framework.Package (42)
AbstractHandlerProvider.cs (4)
27
/// <param name="requestTypeRef">A <see cref="
TypeRef
"/> representing the request type for this method.</param>
28
/// <param name="responseTypeRef">A <see cref="
TypeRef
"/> representing the response type for this method.</param>
35
public abstract IMethodHandler GetMethodHandler(string method,
TypeRef
? requestTypeRef,
TypeRef
? responseTypeRef, string language);
AbstractLanguageServer.cs (2)
64
TypeRefResolver = typeRefResolver ??
TypeRef
.DefaultResolver.Instance;
139
static bool AllTypesMatch(IEnumerable<
TypeRef
?> typeRefs)
AbstractTypeRefResolver.cs (3)
15
private readonly ConcurrentDictionary<
TypeRef
, Type?> _typeRefToTypeMap = [];
17
public Type? Resolve(
TypeRef
typeRef)
28
protected abstract Type? ResolveCore(
TypeRef
typeRef);
HandlerProvider.cs (5)
23
public IMethodHandler GetMethodHandler(string method,
TypeRef
? requestTypeRef,
TypeRef
? responseTypeRef)
26
public override IMethodHandler GetMethodHandler(string method,
TypeRef
? requestTypeRef,
TypeRef
? responseTypeRef, string language)
103
static Lazy<IMethodHandler> GetLazyHandlerFromTypeRef(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver,
TypeRef
handlerTypeRef)
IMethodHandlerProvider.cs (1)
18
ImmutableArray<(IMethodHandler? Instance,
TypeRef
HandlerTypeRef, ImmutableArray<MethodHandlerDetails> HandlerDetails)> GetMethodHandlers();
MethodHandlerDetails.cs (9)
21
/// <param name="RequestTypeRef">A <see cref="
TypeRef
"/> representing the request type, if any.</param>
22
/// <param name="ResponseTypeRef">A <see cref="
TypeRef
"/> representing the response type, if any.</param>
23
/// <param name="RequestContextTypeRef">A <see cref="
TypeRef
"/> representing the context type.</param>
27
TypeRef
? RequestTypeRef,
28
TypeRef
? ResponseTypeRef,
29
TypeRef
RequestContextTypeRef)
45
TypeRef
.FromOrNull(requestType),
46
TypeRef
.FromOrNull(responseType),
47
TypeRef
.From(requestContextType)));
NewtonsoftLanguageServer.cs (1)
30
var
requestTypeRef = metadata.RequestTypeRef;
RequestExecutionQueue.cs (2)
110
var requestType = metadata.RequestTypeRef is
TypeRef
requestTypeRef
113
var responseType = metadata.ResponseTypeRef is
TypeRef
responseTypeRef
RequestHandlerMetadata.cs (2)
10
internal record RequestHandlerMetadata(string MethodName,
TypeRef
? RequestTypeRef,
TypeRef
? ResponseTypeRef, string Language)
TypeRef.cs (12)
16
internal sealed partial class TypeRef : IEquatable<
TypeRef
>
18
private static readonly ConcurrentDictionary<(string TypeName, string AssemblyName, string? CodeBase),
TypeRef
> s_cache = [];
51
=> Equals(obj as
TypeRef
);
53
public bool Equals(
TypeRef
? other)
80
/// Constructs a <see cref="
TypeRef
"/> instance.
85
public static
TypeRef
From(string typeName, string assemblyName, string? codeBase)
89
if (s_cache.TryGetValue(key, out
var
result))
98
/// Constructs a <see cref="
TypeRef
"/> from a <see cref="Type"/>.
101
public static
TypeRef
From(Type type)
119
/// Constructs a <see cref="
TypeRef
"/> from a <see cref="Type"/> or returns <see langword="null"/>
122
public static
TypeRef
? FromOrNull(Type? type)
125
public static
TypeRef
Of<T>() => From(typeof(T));
TypeRef.DefaultResolver.cs (1)
22
protected override Type? ResolveCore(
TypeRef
typeRef)