Skip to content

Commit

Permalink
patterns: Updated pattern language
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 16, 2025
1 parent cad17dd commit 7564651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ namespace hex::plugin::builtin {
PerProvider<TextEditor::Breakpoints> m_breakpoints;
PerProvider<std::optional<pl::core::err::PatternLanguageError>> m_lastEvaluationError;
PerProvider<std::vector<pl::core::err::CompileError>> m_lastCompileError;
PerProvider<const std::vector<std::unique_ptr<pl::core::ast::ASTNode>>*> m_callStack;
PerProvider<const std::vector<pl::core::Evaluator::StackTrace>*> m_callStack;
PerProvider<std::map<std::string, pl::core::Token::Literal>> m_lastEvaluationOutVars;
PerProvider<std::map<std::string, PatternVariable>> m_patternVariables;
PerProvider<std::map<u64, pl::api::Section>> m_sections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ namespace hex::plugin::builtin {
TextEditor::ErrorMarkers errorMarkers;
if (!(*m_callStack)->empty()) {
for (const auto &frame : **m_callStack | std::views::reverse) {
auto location = frame->getLocation();
auto location = frame.node->getLocation();
std::string message;
if (location.source != nullptr && location.source->mainSource) {
if (m_lastEvaluationError->has_value())
Expand Down

0 comments on commit 7564651

Please sign in to comment.