| 354 | } |
| 355 | |
| 356 | int |
| 357 | dds_visitor::visit_enum(AST_Enum* node) |
| 358 | { |
| 359 | const char* name = node->local_name()->get_string(); |
| 360 | |
| 361 | BE_Comment_Guard g("ENUM", name); |
| 362 | |
| 363 | vector<AST_EnumVal*> contents; |
| 364 | |
| 365 | scope2vector(contents, node, AST_Decl::NT_enum_val); |
| 366 | |
| 367 | if (!java_ts_only_) { |
| 368 | if (!node->imported()) { |
| 369 | error_ |= !dds_generator::gen_enum_helper(node, node->name(), contents, node->repoID()); |
| 370 | } |
| 371 | error_ |= !gen_target_.gen_enum(node, node->name(), contents, node->repoID()); |
| 372 | } |
| 373 | |
| 374 | return 0; |
| 375 | } |
| 376 | |
| 377 | int |
| 378 | dds_visitor::visit_interface_fwd(AST_InterfaceFwd* node) |
nothing calls this directly
no test coverage detected