mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-08 07:58:44 +00:00
basic printers, type printers, some fixes, part of expression printers
This commit is contained in:
parent
3914ff7d8b
commit
3669084f55
14 changed files with 795 additions and 39 deletions
|
|
@ -258,7 +258,7 @@ build_comma_expression(parser::ParseTree::Node parser_node,
|
|||
nodes::Identifier(
|
||||
build_node(parser_node), // can't find more precise location'
|
||||
nodes::Identifier::SIMPLE_NAME, ","),
|
||||
std::move(arguments), std::nullopt, false);
|
||||
std::move(arguments), std::nullopt, false, true);
|
||||
}
|
||||
|
||||
// expression operator expression
|
||||
|
|
@ -281,7 +281,7 @@ build_operator_expression(parser::ParseTree::Node parser_node,
|
|||
|
||||
return nodes::NameExpression(build_node(parser_node),
|
||||
build_operator(name_node), std::move(arguments),
|
||||
std::nullopt, false);
|
||||
std::nullopt, false, true);
|
||||
}
|
||||
|
||||
// --- continers
|
||||
|
|
@ -475,7 +475,7 @@ build_name_expression(parser::ParseTree::Node parser_node,
|
|||
std::move(arguments),
|
||||
prefix_node.has_value() ? build_type(prefix_node.value(), type_storage)
|
||||
: std::optional<nodes::TypeProxy>(),
|
||||
is_point_call);
|
||||
is_point_call, false);
|
||||
}
|
||||
|
||||
// type (annotation? expression)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue