mie: parse: remove duplicate sub-parsers in parse_generic_op
This commit is contained in:
@@ -1096,28 +1096,6 @@ static bool parse_generic_op(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_BRACKET)) {
|
|
||||||
if (!mie_parser_parse_successor_list(
|
|
||||||
ctx, MIE_VECTOR_REF(dest->op_successors))) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mie_parser_parse_symbol(ctx, MIE_SYM_RIGHT_BRACKET)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_PAREN)) {
|
|
||||||
if (!mie_parser_parse_region_list(
|
|
||||||
ctx, MIE_VECTOR_REF(dest->op_regions))) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mie_parser_parse_symbol(ctx, MIE_SYM_RIGHT_PAREN)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_BRACE)) {
|
if (mie_parser_parse_symbol(ctx, MIE_SYM_LEFT_BRACE)) {
|
||||||
if (!mie_parser_parse_attribute_map(ctx, &dest->op_attrib)) {
|
if (!mie_parser_parse_attribute_map(ctx, &dest->op_attrib)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user