diff --git a/ridlbe/ccmx11/facets/dds/visitors/union.rb b/ridlbe/ccmx11/facets/dds/visitors/union.rb index 5e882f15..677781c3 100644 --- a/ridlbe/ccmx11/facets/dds/visitors/union.rb +++ b/ridlbe/ccmx11/facets/dds/visitors/union.rb @@ -24,6 +24,14 @@ def is_string_type? def is_array_type? ::IDL::Type::Array === self._resolved_idltype end + end + + class UnionVisitor + def native_scoped_switch_cxxtype + self.switchtype.is_a?(::IDL::Type::ScopedName) ? '::DDS_Native' + scoped_switch_cxxtype : scoped_switch_cxxtype + end + + optional_template :life_cycle_traits def annotations # Add appendable when it is not final available @@ -38,13 +46,5 @@ def annotations ann end end - - class UnionVisitor - def native_scoped_switch_cxxtype - self.switchtype.is_a?(::IDL::Type::ScopedName) ? '::DDS_Native' + scoped_switch_cxxtype : scoped_switch_cxxtype - end - - optional_template :life_cycle_traits - end end # CCMX11 end # IDL