17 references to BaseService
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
LspServices\AbstractLspServiceProvider.cs (1)
25
public LspServices CreateServices(WellKnownLspServerKinds serverKind, FrozenDictionary<string, ImmutableArray<
BaseService
>> baseServices)
LspServices\BaseService.cs (4)
18
public static
BaseService
Create<T>(T instance)
22
public static
BaseService
CreateLazily<T>(Func<ILspServices, T> creator)
26
private sealed class ConcreteService<T>(T instance) :
BaseService
33
private sealed class LazyService<T>(Func<ILspServices, T> creator) :
BaseService
LspServices\LspServices.cs (2)
28
private readonly FrozenDictionary<string, ImmutableArray<
BaseService
>> _baseServices;
40
FrozenDictionary<string, ImmutableArray<
BaseService
>> baseServices)
RoslynLanguageServer.cs (10)
26
private readonly FrozenDictionary<string, ImmutableArray<
BaseService
>> _baseServices;
69
private FrozenDictionary<string, ImmutableArray<
BaseService
>> GetBaseServices(
109
BaseService
service => [service],
110
ImmutableArray<
BaseService
>.Builder builder => builder.ToImmutable(),
117
AddBaseService(
BaseService
.Create(instance));
123
AddBaseService(
BaseService
.CreateLazily(creator));
126
void AddBaseService(
BaseService
baseService)
143
case
BaseService
existingService:
144
var builder = ImmutableArray.CreateBuilder<
BaseService
>();
152
case ImmutableArray<
BaseService
>.Builder existingBuilder: