public QsiEngine(IQsiLanguageService languageService) { LanguageService = languageService; _treeParser = new Lazy <IQsiTreeParser>(LanguageService.CreateTreeParser); _treeDeparser = new Lazy <IQsiTreeDeparser>(LanguageService.CreateTreeDeparser); _scriptParser = new Lazy <IQsiScriptParser>(LanguageService.CreateScriptParser); _repositoryProvider = new Lazy <IQsiRepositoryProvider>(LanguageService.CreateRepositoryProvider); _analyzers = new Lazy <QsiAnalyzerBase[]>(() => LanguageService.CreateAnalyzers(this).ToArray()); }
public ExplainLanguageService(IQsiLanguageService languageService) { _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService)); }