Commit b7c45ca3 authored by Lev Walkin's avatar Lev Walkin

OPTIONAL UNIQUE -> UNIQUE OPTIONAL

parent 7aedc5ee
This diff is collapsed.
...@@ -950,13 +950,13 @@ ClassField: ...@@ -950,13 +950,13 @@ ClassField:
$$->meta_type = AMT_OBJECTFIELD; $$->meta_type = AMT_OBJECTFIELD;
$$->marker = $2; $$->marker = $2;
} }
| ClassFieldIdentifier Type optMarker optUnique { | ClassFieldIdentifier Type optUnique optMarker {
$$ = $2; $$ = $2;
$$->Identifier = $1.name; $$->Identifier = $1.name;
$$->marker = $3; $$->marker = $4;
$$->unique = $4; $$->unique = $3;
} }
| ClassFieldIdentifier ClassFieldIdentifier optMarker optUnique { | ClassFieldIdentifier ClassFieldIdentifier optUnique optMarker {
int ret; int ret;
$$ = asn1p_expr_new(yylineno); $$ = asn1p_expr_new(yylineno);
checkmem($$); checkmem($$);
...@@ -968,8 +968,8 @@ ClassField: ...@@ -968,8 +968,8 @@ ClassField:
checkmem(ret == 0); checkmem(ret == 0);
$$->expr_type = A1TC_CLASSFIELD; $$->expr_type = A1TC_CLASSFIELD;
$$->meta_type = AMT_OBJECTFIELD; $$->meta_type = AMT_OBJECTFIELD;
$$->marker = $3; $$->marker = $4;
$$->unique = $4; $$->unique = $3;
} }
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment