<unit name="ok_enum_nested">
  <type name="TGlobalEnum" declaration="TGlobalEnum = (...);">
    <constant name="geOne" declaration="geOne">
    </constant>
    <constant name="geTwo" declaration="geTwo">
    </constant>
    <constant name="geThree" declaration="geThree">
    </constant>
  </type>
  <structure name="TMyObject" name_with_generic="TMyObject" type="class">
    <ancestor name="TObject" declaration="TObject" />
    <type name="TObjectEnum" declaration="TObjectEnum = (...);" visibility="public">
      <constant name="oeOne" declaration="oeOne" visibility="published">
      </constant>
      <constant name="oeTwo" declaration="oeTwo" visibility="published">
      </constant>
      <constant name="oeThree" declaration="oeThree" visibility="published">
      </constant>
    </type>
    <structure name="TNestedObject" visibility="public" name_with_generic="TNestedObject" type="class">
      <ancestor name="TObject" declaration="TObject" />
      <type name="TNestedObjectEnum" declaration="TNestedObjectEnum = (...);" visibility="public">
        <constant name="noeOne" declaration="noeOne" visibility="published">
        </constant>
        <constant name="noeTwo" declaration="noeTwo" visibility="published">
        </constant>
        <constant name="noeThree" declaration="noeThree" visibility="published">
        </constant>
      </type>
    </structure>
  </structure>
</unit>
