basic printers, type printers, some fixes, part of expression printers

This commit is contained in:
ProgramSnail 2023-07-24 18:47:57 +03:00
parent 3914ff7d8b
commit 3669084f55
14 changed files with 795 additions and 39 deletions

View file

@ -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)*