Skip to content
Snippets Groups Projects
Commit 76fcece6 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix ASTBuilder

name_subscript_expression was not handled correctly after commit 068dccf4
parent 218f0905
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -107,7 +107,7 @@ struct ASTBuilder::simplify_unary : parse_tree::apply<ASTBuilder::simplify_unary
}
}
if ((n->is_type<language::unary_expression>())) {
if (n->is_type<language::unary_expression>() or n->is_type<language::name_subscript_expression>()) {
const size_t child_nb = n->children.size();
if (child_nb > 1) {
if (n->children[1]->is_type<language::subscript_expression>()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment