private void ParseAndCaptureErrors() { try { var dslParser = new DslParser(tokenizer, rhetosAppContext.ConceptInfoInstances, rhetosLogProvider, new BuildOptions()); dslParser.ParseConceptsWithCallbacks(OnKeyword, OnMemberRead, OnUpdateContext); } catch (DslSyntaxException e) { result.DslParserErrors.Add(CreateAnalysisError(e)); } catch (Exception e) { result.DslParserErrors.Add(new CodeAnalysisError() { LineChr = LineChr.Zero, Message = e.Message }); } }