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
|
|
@ -377,10 +377,14 @@ public:
|
|||
return &types_.at(type_id).first;
|
||||
}
|
||||
|
||||
utils::ValueType& GetValueType(utils::IdType type_id) {
|
||||
utils::ValueType GetValueType(utils::IdType type_id) {
|
||||
return types_.at(type_id).second;
|
||||
}
|
||||
|
||||
void SetValueType(utils::IdType type_id, utils::ValueType value_type) {
|
||||
types_.at(type_id).second = value_type;
|
||||
}
|
||||
|
||||
bool EqualValues(utils::IdType first_type, utils::IdType second_type) {
|
||||
return GetAnyValue(first_type)->Same(*GetAnyValue(second_type));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue