예제 #1
0
 public AbstractSyntaxTreeFactoryService(HostLanguageServices languageServices)
 {
     this.LanguageServices = languageServices;
     this.MinimumLengthForRecoverableTree = languageServices.WorkspaceServices.Workspace.Options.GetOption(CacheOptions.RecoverableTreeLengthThreshold);
     _hasCachingService = languageServices.WorkspaceServices.GetService <IProjectCacheHostService>() != null;
 }
 private static CodeStyleHostLanguageServices Create(HostLanguageServices hostLanguageServices)
 => new CodeStyleHostLanguageServices(hostLanguageServices);
예제 #3
0
 public AbstractSyntaxTreeFactoryService(HostLanguageServices languageServices)
 {
     this.LanguageServices = languageServices;
     this.MinimumLengthForRecoverableTree = languageServices.WorkspaceServices.Workspace.Options.GetOption(CacheOptions.RecoverableTreeLengthThreshold);
 }
 public static CodeStyleHostLanguageServices GetRequiredMappedCodeStyleLanguageServices(HostLanguageServices hostLanguageServices)
 => s_mappedLanguageServices.GetValue(hostLanguageServices, Create);
예제 #5
0
 public AbstractSyntaxTreeFactoryService(HostLanguageServices languageServices)
 {
     this.languageServices = languageServices;
 }