20#ifndef LLVMEXPR_ANALYSIS_FRAMEWORK_ANALYSIS_ERROR_HPP
21#define LLVMEXPR_ANALYSIS_FRAMEWORK_ANALYSIS_ERROR_HPP
33 : std::runtime_error(message) {}
36 : std::runtime_error(message), token_idx(token_idx) {}
39 std::string_view token_text)
40 : std::runtime_error(message), token_idx(token_idx),
41 token_text(token_text) {}
52 std::optional<int> token_idx;
53 std::optional<std::string> token_text;
AnalysisError(const std::string &message)
std::optional< std::string > getTokenText() const
AnalysisError(const std::string &message, int token_idx, std::string_view token_text)
AnalysisError(const std::string &message, int token_idx)
std::optional< int > getTokenIndex() const