Skip to content

Commit

Permalink
Corrected location of annotations method
Browse files Browse the repository at this point in the history
    * ridlbe/ccmx11/facets/dds/visitors/union.rb:
  • Loading branch information
jwillemsen committed Jan 10, 2024
1 parent a55b40f commit 152da1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ridlbe/ccmx11/facets/dds/visitors/union.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 152da1a

Please sign in to comment.