From 152da1a6447a29d31f06a653eee56ede5af850e4 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Wed, 10 Jan 2024 09:25:43 +0100 Subject: [PATCH] Corrected location of annotations method * ridlbe/ccmx11/facets/dds/visitors/union.rb: --- ridlbe/ccmx11/facets/dds/visitors/union.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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