mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
type_check_visitor value types maybe fixed
This commit is contained in:
parent
6bf64acc4d
commit
43b2993e2a
5 changed files with 76 additions and 65 deletions
|
|
@ -223,10 +223,14 @@ public:
|
|||
return &values_.at(value_id).first;
|
||||
}
|
||||
|
||||
utils::ValueType& GetValueType(utils::IdType value_id) {
|
||||
utils::ValueType GetValueType(utils::IdType value_id) {
|
||||
return values_.at(value_id).second;
|
||||
}
|
||||
|
||||
void SetValueType(utils::IdType value_id, utils::ValueType value_type) {
|
||||
values_.at(value_id).second = value_type;
|
||||
}
|
||||
|
||||
bool EqualValues(utils::IdType first_value, utils::IdType second_value) {
|
||||
return GetAnyValue(first_value)->Same(*GetAnyValue(second_value));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue