mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-25 16:28:46 +00:00
type check expressions: type_check_name_expression and type_check_constructor parts
This commit is contained in:
parent
ed4b984b81
commit
a5fc0c7ee7
4 changed files with 149 additions and 22 deletions
|
|
@ -219,6 +219,13 @@ public:
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
std::optional<TypeProxy> get_type_proxy() const {
|
||||
if (type_.has_value()) {
|
||||
return type_.value();
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Modifier get_before_modifier() const { return before_modifier_; }
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ find_type_definition_handle_errors(const std::string &name,
|
|||
const nodes::Node &node,
|
||||
SourcesManager &sources_manager);
|
||||
|
||||
std::optional<const nodes::NameDefinition *>
|
||||
std::optional<const nodes::FunctionDefinition *>
|
||||
find_name_definition_handle_errors(const std::string &name,
|
||||
const nodes::Node &node,
|
||||
SourcesManager &sources_manager);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue