7 references to From
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
LspServices\LspServices.cs (1)
179builder.Add((handler, TypeRef.From(handlerType), methods));
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (1)
47TypeRef.From(requestContextType)));
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\TypeRef.cs (2)
120=> type is not null ? From(type) : null; 122public static TypeRef Of<T>() => From(typeof(T));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
TestConfigurableDocumentHandler.cs (2)
63TypeRef.From(typeof(TestRequestWithDocument)), TypeRef.From(typeof(TestConfigurableResponse)), LanguageServerConstants.DefaultLanguageName);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Mocks\TestLspServices.cs (1)
51=> [.. Services.Where(s => s.instance is IMethodHandler).Select(s => ((IMethodHandler?)s.instance, TypeRef.From(s.instance.GetType()), MethodHandlerDetails.From(s.instance.GetType())))];