diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-31 19:33:02 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-31 19:33:02 +0000 |
| commit | 67ba05cb7cfee60daaf257230ddbc4f1e0a9f8ac (patch) | |
| tree | b8c046e3e0a171c7be62887d0839b60b0d27e9e4 /src/parser.cpp | |
| parent | 2f1aeaf757bce1ebc37bd5e63dfcdfe22685deaf (diff) | |
Correct false positive check in `check_unique_package_names`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 9cc9adfc9..7a858e520 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -183,6 +183,11 @@ Ast *clone_ast(Ast *node) { n->FieldValue.value = clone_ast(n->FieldValue.value); break; + case Ast_EnumFieldValue: + n->EnumFieldValue.name = clone_ast(n->EnumFieldValue.name); + n->EnumFieldValue.value = clone_ast(n->EnumFieldValue.value); + break; + case Ast_TernaryIfExpr: n->TernaryIfExpr.x = clone_ast(n->TernaryIfExpr.x); n->TernaryIfExpr.cond = clone_ast(n->TernaryIfExpr.cond); |