mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
fixes, part of execute_visitor
This commit is contained in:
parent
7d96fe5a86
commit
802b736e15
7 changed files with 345 additions and 92 deletions
|
|
@ -141,6 +141,7 @@ private:
|
|||
|
||||
bool HandleCondition(Expression& condition, const BaseNode& base_node);
|
||||
void CollectTypeContext(const ParametrizedType& type);
|
||||
void CheckPattern(Pattern& node, const BaseNode& base_node);
|
||||
|
||||
template<typename T>
|
||||
T* ExtractValue(utils::IdType value, const BaseNode& base_node) {
|
||||
|
|
@ -169,6 +170,7 @@ private:
|
|||
std::optional<LoopControlExpression> active_loop_control_expression_;
|
||||
std::optional<utils::IdType> return_value_; // TODO: work outside block ??
|
||||
std::optional<utils::IsConstModifier> is_const_definition_;
|
||||
bool case_matched_;
|
||||
};
|
||||
|
||||
} // namespace interpreter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue