mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
.
This commit is contained in:
parent
43b2993e2a
commit
25583d3edd
1 changed files with 0 additions and 13 deletions
|
|
@ -1464,19 +1464,6 @@ std::optional<FunctionDeclaration*>
|
||||||
utils::IdType expression_type) {
|
utils::IdType expression_type) {
|
||||||
std::optional<FunctionDeclaration*> maybe_function_declaration;
|
std::optional<FunctionDeclaration*> maybe_function_declaration;
|
||||||
|
|
||||||
// TODO: -------- remove, unneeded -------
|
|
||||||
// auto maybe_internal_type_info = context_manager_.GetValue<info::type::InternalType>(expression_type);
|
|
||||||
// if (maybe_internal_type_info.has_value()) {
|
|
||||||
// auto maybe_abstract_type_id = context_manager_.FindLocalType(info::type::ToString(*maybe_internal_type_info.value()));
|
|
||||||
// if (maybe_abstract_type_id.has_value()) {
|
|
||||||
// expression_type = maybe_abstract_type_id.value();
|
|
||||||
// } else {
|
|
||||||
// error_handling::HandleInternalError("InternalType local abstract type not found",
|
|
||||||
// "TypeCheckVisitor.FindExpressionMethodAndUpdate",
|
|
||||||
// &node->base);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
auto maybe_abstract_type_info = context_manager_.GetValue<info::type::AbstractType>(expression_type);
|
auto maybe_abstract_type_info = context_manager_.GetValue<info::type::AbstractType>(expression_type);
|
||||||
|
|
||||||
if (maybe_abstract_type_info.has_value()) {
|
if (maybe_abstract_type_info.has_value()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue