示例#1
0
 private RecoverableSyntaxTree(RecoverableSyntaxTree original, SyntaxTreeInfo info)
 {
     _recoverableRoot     = original._recoverableRoot.WithSyntaxTree(this);
     _info                = info;
     _projectCacheService = original._projectCacheService;
     _cacheKey            = original._cacheKey;
 }
示例#2
0
 public SolutionServices(Workspace workspace)
 {
     this.Workspace        = workspace;
     this.TemporaryStorage = workspace.Services.GetService <ITemporaryStorageService>();
     this.MetadataService  = workspace.Services.GetService <IMetadataService>();
     this.CacheService     = workspace.Services.GetService <IProjectCacheHostService>();
 }
示例#3
0
 private RecoverableSyntaxTree(AbstractSyntaxTreeFactoryService service, ProjectId cacheKey, CompilationUnitSyntax root, SyntaxTreeInfo info)
 {
     _recoverableRoot     = new RecoverableSyntaxRoot <CompilationUnitSyntax>(service, root, this);
     _info                = info;
     _projectCacheService = service.LanguageServices.WorkspaceServices.GetService <IProjectCacheHostService>();
     _cacheKey            = cacheKey;
 }
 private RecoverableSyntaxTree(RecoverableSyntaxTree original, SyntaxTreeInfo info)
 {
     this.recoverableRoot     = original.recoverableRoot.WithSyntaxTree(this);
     this.info                = info;
     this.projectCacheService = original.projectCacheService;
     this.cacheKey            = original.cacheKey;
 }
示例#5
0
 public SolutionServices(Workspace workspace)
 {
     this.Workspace = workspace;
     this.TemporaryStorage = workspace.Services.GetService<ITemporaryStorageService>();
     this.MetadataService = workspace.Services.GetService<IMetadataService>();
     this.CacheService = workspace.Services.GetService<IProjectCacheHostService>();
 }
示例#6
0
 public Service(IProjectCacheHostService hostService) => _hostService = hostService;
 public Service(IProjectCacheHostService hostService)
 {
     this.hostService = hostService;
 }
 public Service(IProjectCacheHostService hostService)
 {
     _hostService = hostService;
 }