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