mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
fixes
This commit is contained in:
parent
ce0ca2a5cb
commit
7fc56df2b7
4 changed files with 225 additions and 130 deletions
|
|
@ -519,7 +519,9 @@ struct FunctionCallExpression {
|
|||
std::vector<std::unique_ptr<TypeExpression>> parameters;
|
||||
std::vector<SubExpressionToken> arguments;
|
||||
|
||||
utils::IdType function_id_;
|
||||
// only one from two is present
|
||||
std::optional<utils::IdType> function_id_;
|
||||
std::optional<utils::IdType> typeclass_graph_id_;
|
||||
};
|
||||
|
||||
struct TupleExpression {
|
||||
|
|
|
|||
|
|
@ -140,6 +140,16 @@ private:
|
|||
|
||||
void CheckPattern(Pattern& node, const BaseNode& base_node);
|
||||
|
||||
|
||||
std::optional<utils::IdType>
|
||||
FindSubExpressionMethod(utils::IdType expression_type,
|
||||
const std::string& name,
|
||||
const BaseNode& base_node);
|
||||
|
||||
std::optional<utils::IdType> FindTypeFunction(TypeExpression* node,
|
||||
const std::string& name,
|
||||
std::unordered_map<std::string, utils::IdType>& context);
|
||||
|
||||
private:
|
||||
info::GlobalInfo::NamespaceVisitor namespace_visitor_;
|
||||
info::GlobalInfo& global_info_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue