public ParsingCacheService( IDeclarationFinderProvider declarationFinderProvider, IModuleToModuleReferenceManager moduleToModuleReferenceManager, IReferenceRemover referenceRemover, ISupertypeClearer supertypeClearer, ICompilationArgumentsCache compilationArgumentsCache) { if (declarationFinderProvider == null) { throw new ArgumentNullException(nameof(declarationFinderProvider)); } if (moduleToModuleReferenceManager == null) { throw new ArgumentNullException(nameof(moduleToModuleReferenceManager)); } if (referenceRemover == null) { throw new ArgumentNullException(nameof(referenceRemover)); } if (supertypeClearer == null) { throw new ArgumentNullException(nameof(supertypeClearer)); } if (compilationArgumentsCache == null) { throw new ArgumentNullException(nameof(compilationArgumentsCache)); } _declarationFinderProvider = declarationFinderProvider; _moduleToModuleReferenceManager = moduleToModuleReferenceManager; _referenceRemover = referenceRemover; _supertypeClearer = supertypeClearer; _compilationArgumentsCache = compilationArgumentsCache; }
public ParsingCacheService( IDeclarationFinderProvider declarationFinderProvider, IModuleToModuleReferenceManager moduleToModuleReferenceManager, IReferenceRemover referenceRemover, ISupertypeClearer supertypeClearer, ICompilationArgumentsCache compilationArgumentsCache, IUserComProjectRepository userComProjectRepository, IProjectsToResolveFromComProjectSelector projectsToResolveFromComProjectSelector) { if (declarationFinderProvider == null) { throw new ArgumentNullException(nameof(declarationFinderProvider)); } if (moduleToModuleReferenceManager == null) { throw new ArgumentNullException(nameof(moduleToModuleReferenceManager)); } if (referenceRemover == null) { throw new ArgumentNullException(nameof(referenceRemover)); } if (supertypeClearer == null) { throw new ArgumentNullException(nameof(supertypeClearer)); } if (compilationArgumentsCache == null) { throw new ArgumentNullException(nameof(compilationArgumentsCache)); } if (userComProjectRepository == null) { throw new ArgumentNullException(nameof(userComProjectRepository)); } if (projectsToResolveFromComProjectSelector == null) { throw new ArgumentNullException(nameof(projectsToResolveFromComProjectSelector)); } _declarationFinderProvider = declarationFinderProvider; _moduleToModuleReferenceManager = moduleToModuleReferenceManager; _referenceRemover = referenceRemover; _supertypeClearer = supertypeClearer; _compilationArgumentsCache = compilationArgumentsCache; _userComProjectRepository = userComProjectRepository; _projectsToResolveFromComProjectSelector = projectsToResolveFromComProjectSelector; }