mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-24 07:48: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_; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue