Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 public ExplainLanguageService(IQsiLanguageService languageService)
 {
     _languageService = languageService ?? throw new ArgumentNullException(nameof(languageService));
 }